[TYPO3-english] extbase: searching in a list field

Lorenz Ulrich lorenz-typo3 at visol.ch
Mon Apr 30 18:08:11 CEST 2012


Hi Arno

Yes, this is not supported. You should use true m:n relations since I 
think I heard that it is anyway planned to drop these comma-separated 
lists in the core (maybe for 6.0).

Best regards,

Lorenz

Am 26.04.2012 13:40, schrieb Arno Dudek:
> Answer myself:
>
> It looks like this will not supported. I do it like this now.
>
> $reservations = $query->matching(
> $query->logicalOr(
> $query->equals('run', '27'),
> $query->like($'run', '27,%'),
> $query->like($'run', '%,27'),
> $query->like($'run', '%,27,%')
> )
> )->execute();
>
> lg arno



More information about the TYPO3-english mailing list