Hi everybody. 
 
Here are several Doctrine calls : 
 
These ones work (the request is compiled and processed with no errors) :

 
$q = Doctrine_Query::create()->from('Livre')->where("infos_aliga like
'%?%'", 'something')->execute();
$q = Doctrine_Query::create()->from('Livre')->whereNotIn('id',
array(1,2,3))->execute();
$q = Doctrine_Query::create()->from('Livre')->andWhereNotIn('id',
array(1,2,3))->execute();
 
But this one fails with the following message : SQLSTATE[HY093]: Invalid
parameter number: number of bound variables does not match number of
tokens
 
$q = Doctrine_Query::create()->from('Livre')->where("infos_aliga like
'%?%'", 'something'))->andWhereNotIn('id', array(1,2,3))->execute();
 
 
Any ideas of what I am doing wrong ? 



 
 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to