[TYPO3-mvc] repository chain multiple "likes"
Steffen Ritter
info at rs-websystems.de
Tue Dec 8 12:38:12 CET 2009
Alex Bailey schrieb:
> Jochen Rau schrieb:
>> Hi Steffen.
>>
>> schrieb Steffen Ritter:
>>> $query->logicalAND($query->like(),$query->like())
>>
>> Early bird catches the worm ... ;-)
>>
>> Jochen
>>
>
> Hey guys :)
>
> Thanks for your answers I think I have an idea now. But i still have one
> problem. My "likes" are being created dynamic that means sometimes i
> maybe have 1 sometimes 3 likes. So I can't set them static inside the
> function. Is there any way to insert them inside a foreach loop?
>
> example:
>
> 1. loop ->
> $query->logicalAND($query->like())
>
> 2. loop ->
> $query->logicalAND($query->like(),$query->like())
>
> and so on...
>
> regards
>
> Alex
very dirty:
foreach: $string =
'$query->logicalAnd('.$string.',$query->like(nexcondition)';
$query->matching(eval($string));
More information about the TYPO3-project-typo3v4mvc
mailing list