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

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


Jochen Rau schrieb:
> 
> Let's wrap up the different cases (what I expect to be the result).
> Inside a ProductRepository we specify:

Too much API oriented. Think about what the user wants to do and then find a suitable method name
for it.

> 2) $query->matching($query->contains('categories', NULL))
> Result: empty result set.

This could IMHO interpreted as "find all entities that has no "category" assigned.

> 4) $query->matching($query->contains('categories', 'foo'))
> with property categories == NULL
> Result: empty result set.

I don't understand this one.

> a) $query->notIsNull('categories')
> b) $query->isNull('categories')
> c) $query->isEmpty('categories')
> d) $query->isUndefined('categories')
> e) $query->isNotSet('categories')

f) $query->without('categories')

Masi


More information about the TYPO3-project-typo3v4mvc mailing list