I am using Doctrine 1.1 in Zend. I am trying to write a query that will return records that have a null value in a certain column.
$q = Doctrine_Query::creat
If you are using Symfony 2 and above, you can use this code:
->where($qb->expr()->isNull('a.vertical_id'));
Reference:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html#the-expr-class
I use doctrine with symfony, and this is how I do:
where('a.vertical_id is NULL');