I try to execute this query
$em->createQuery('select i from AcmePublicBundle:Public i where i.user in (:opc)');
$query->setParameter('opc', $opc);
where :opc is an array like this
$opc={array}[2]
0 = {array}[1]
id = "9"
1 = {array}[1]
id = "10"
I get this error
Notice: Undefined offset: 0 in...
If I try this
$em->createQuery('select i from AcmePublicBundle:Public i where i.usuario in (9, 10)');
everything is fine. But I have to pass $opc.
Any ideas?