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

Jochen Rau jochen.rau at typoplanet.de
Mon Mar 15 15:22:28 CET 2010


Hi.

On 15.03.10 15:05, Martin Kutschker wrote:

>> $query->matching($query->contains('categories', 'foo'))
>>
>> The property definitely does not contain 'foo' as a category ->  empty
>> result set.
>
> Hm. Looks a bit strange as it has to me the air of an uncomplete initialization.
>
>>> f) $query->without('categories')
>>
>> This is ambiguous. "Without a categories property set" (categories ===
>> NULL) or "Without a category" (count($categories) === 0).
>
> g) $query->withoutAny('categories')
>
> I see no use case for "categories === NULL".

Karsten opened an issue on that: http://forge.typo3.org/issues/show/6520

Jochen


More information about the TYPO3-project-typo3v4mvc mailing list