[TYPO3-mvc] $query->like raises exception

Steffen Ritter info at rs-websystems.de
Tue Feb 23 13:38:00 CET 2010


Jochen Rau schrieb:
> Hi Steffen.
> 
> On 23.02.10 12:41, Steffen Ritter wrote:
>> Hey folks,
>> I'm just trying a simple query->like('myProperty',);
>>
>> and this results in the following exception:
>> #1217241834: Invalid variable name "title4b83bf2b24b2a" given to 
>> bindValue.
>>
>> How to debug this?
>> Does anyone know the reason?
> 
> Doesn't this work for you?
> 
> $objects = $query->matching($query->like('myProperty', 
> 'test%'))->execute();
> 
> Regards
> Jochen
Update: strange thing:
$query = $query->matching($query->like('myProperty', 'test%'));
ist working while

$constraint = $query->like('myProperty', 'test%');
$query=$query->matching($constraint);

results in an exception.


More information about the TYPO3-project-typo3v4mvc mailing list