Doctrine symfony1.4和条令中检查空值的多个where条件

Doctrine symfony1.4和条令中检查空值的多个where条件,doctrine,symfony-1.4,dql,Doctrine,Symfony 1.4,Dql,我正在使用symfony1.4和条令。我需要检查值为NULL的条件。我需要写一个查询,其中status=1和start=NULL和end=NULL和估计时间!=空。我已经尝试过了,但无法得到结果 $tickets = Doctrine_Core::getTable('table') ->createQuery('a') ->where('status=?','1') ->

我正在使用symfony1.4和条令。我需要检查值为
NULL
的条件。我需要写一个查询,其中
status=1
start=NULL
end=NULL
估计时间!=空
。我已经尝试过了,但无法得到结果

            $tickets = Doctrine_Core::getTable('table')
              ->createQuery('a')
              ->where('status=?','1')
              ->andWhere('start=?', '')
                              ->andWhere('end=?', '')
              ->andWhere('estimated_time!=?','')
              ->orderBy('id DESC');

任何帮助都将不胜感激。谢谢..

尝试使用
不为NULL

$tickets = Doctrine_Core::getTable('table')
    ->createQuery('a')
    ->where('status=?','1')
    ->andWhere('start IS NOT NULL')
    ->andWhere('end IS NOT NULL')
    ->andWhere('estimated_time IS NOT NULL')
    ->orderBy('id DESC');