Here is the dql-query
$dql = "SELECT t Entities\Table t WHERE t.field IN (?1)"; $q = $em->createQuery($dql) ->setParameter(1, '108919,108920'); $result = $q->execute(); if i pass parameters through setParameter doctrine returns only first result, but if i put them directly into the dql-query it returns 2 results (this is correct):
$dql = "SELECT t Entities\Table t WHERE t.field1 IN (108919,108920)"; How to deal with "IN" in WHERE-clause through setParameter?