How to specify null value as filter in a Doctrine query?

后端 未结 2 1962
感动是毒
感动是毒 2021-02-02 05:08

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         


        
2条回答
  •  心在旅途
    2021-02-02 05:37

    I use doctrine with symfony, and this is how I do:

    where('a.vertical_id is NULL');

提交回复
热议问题