$q = $dbHandler->createSelectQuery(); $q->select( '*' )->from( 'table' ) ->where( $q->expr->isNull( 'id' ) );
public function isNull($expression) { return "{$expression} IS NULL"; }