[TYPO3-mvc] $query->contains: Is there something like $query->containsNone('fieldName')?

roberto blanko robertoblanko at gmail.com
Fri Mar 12 16:24:52 CET 2010


Hello again,

I am  currently experimenting with the new Query::contains() method.

Now $query->contains('categories', $category) gives my all records having
$categoy assigned. ButI want to select all records having no category
assigned. In my case the number in the categories field isn't always correct
(third party reasons) so I can't just use $query->equals('categories', 0).

I've already tried $query->contains('categories', NULL) and
$query->logicalNot($query->contains('categories')).

Is there any nice solution for that?

Best regards and keep up the good work!


More information about the TYPO3-project-typo3v4mvc mailing list