[FLOW3-general] query constraint with check for Null

Thomas Mammitzsch thomas at visualworx.de
Mon Feb 25 16:21:01 CET 2013


hi list,

im trying to get objects, where a property is not Null.

I tried:

         $query->matching(
             $query->logicalAnd($constraints),
             $query->logicalNot($query->isEmpty('myProp'))
         );

         $query->matching(
             $query->logicalAnd($constraints),
             $query->logicalNot($query->equals('myProp', NULL))
         );

Both results contains objects where $myProp IS Null.
I could not find an example for this kind of query.
How can i achieve it?

regards, Thomas


More information about the FLOW3-general mailing list