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

Martin Kutschker masi-no at spam-typo3.org
Mon Mar 15 11:16:29 CET 2010


roberto blanko schrieb:
> 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).

Natural would seem to me $query->without('categories').

Masi


More information about the TYPO3-project-typo3v4mvc mailing list