[TYPO3-mvc] matching logicalNot isEmpty
Frank Krüger
fkrueger-ml at mp-group.net
Wed Nov 6 18:51:46 CET 2013
Hello Henk,
AFAIK 'isEmpty' is not a query class method.
$query->logicalNot(
$query->equals('photo', '')
)
or
$query->logicalNot(
$query->equals('photo', NULL)
)
should work.
hth
Frank
Am Mittwoch, den 06.11.2013, 16:37 +0100 schrieb Henk Scholten:
> Hello,
>
> I'm trying to fetch all items except items without photo.
>
> I get an error with this query:
>
> $query = $this->createQuery();
> $query->matching(
> $query->logicalNot(
> $query->isEmpty('photo')
> )
> );
>
> Method TYPO3\CMS\Extbase\Persistence\Generic\Query::isEmpty is not
> supported by generic persistence"
>
> What is wrong?
>
> Using TYPO3 6.2 dev
More information about the TYPO3-project-typo3v4mvc
mailing list