[TYPO3-mvc] Repository $query->equals('serie', '1,2')
Christian Schwan - Dimme GmbH
christian.schwan at dimme.ch
Sat Jun 5 23:50:07 CEST 2010
He jochen,
thx that worked;-)
$explodedSerie = t3lib_div::intExplode(',', $serie);
$query->matching($query->in('serie', $explodedSerie));
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Jochen Rau
Gesendet: Samstag, 5. Juni 2010 23:47
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] Repository $query->equals('serie', '1,2')
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
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
Eingehende eMail ist virenfrei.
Von AVG Free SB überprüft - www.avg.de
Version: 9.0.829 / Virendatenbank: 271.1.1/2919 - Ausgabedatum: 06/05/10
08:25:00
Ausgehende eMail ist virenfrei.
Von AVG Free SB überprüft - www.avg.de
Version: 9.0.829 / Virendatenbank: 271.1.1/2919 - Ausgabedatum: 06/05/10
08:25:00
More information about the TYPO3-project-typo3v4mvc
mailing list