[TYPO3-mvc] $query->contains: Is there something like $query->containsNone('fieldName')?
roberto blanko
robertoblanko at gmail.com
Mon Mar 15 15:13:06 CET 2010
>
> 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))
>
I'm okay with that. But if you take this way, ifEmpty should also work with
non-relational fields e.g. empty strings. Otherwise it would be confusing.
More information about the TYPO3-project-typo3v4mvc
mailing list