[TYPO3-mvc] Repository $query->equals('serie', '1,2')

Jochen Rau jochen.rau at typoplanet.de
Sat Jun 5 23:46:35 CEST 2010


On 2010-06-05, Christian Schwan - Dimme GmbH <christian.schwan at dimme.ch> wrote:
> But its still not working:
>
> Print_r($serie) returns: 1,2
>
> $query->matching($query->in('serie', array($serie)));
>
> Only white Page comes up

I assume that you have

$serie = '1,2';

but it should be 

$serie = array(1,2);

and then

$query->matching($query->in('serie', $serie));

If you have a string like $serie = '1,2' you might want to use

$explodedSerie = $t3lib_div::intExplode(',', $serie);

> But if I try
>
> $query->matching($query->in('serie', array(1,2)));
>
> It works

Uff. ;-)

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list