[TYPO3-mvc] matching logicalNot isEmpty
Henk Scholten
henk at wolfsstyle.nl
Wed Nov 6 20:23:22 CET 2013
Tnx Frank!
Frank Krüger schreef op 06-11-13 18:51:
> 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