[TYPO3-mvc] $query->contains: Is there something like $query->containsNone('fieldName')?
Jochen Rau
jochen.rau at typoplanet.de
Mon Mar 15 14:58:50 CET 2010
Hi all.
On 13.03.10 10:05, Jochen Rau wrote:
> a) $query->notIsNull('categories')
> b) $query->isNull('categories')
> c) $query->isEmpty('categories')
> d) $query->isUndefined('categories')
> e) $query->isNotSet('categories')
After another discussion with Karsten today we came to the result that
$query->isEmpty('categories')
would fit. It should behave like
if (count($categories) === 0)
and not like
if (empty($categories))
a) and b) are similar to $query->equals($categories, NULL). d) and e)
are too far form the domain thinking.
Do you agree?
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list