When using the following only the last where
is added to my query;
$qb = $this->getEntityManager()->createQueryBuilder();
$qb->select(array('qi'))
->from('Table:Qi', 'qi')
->where("qi.content = " . $content->getId())
->where("qi.queue = " . $child->getQueue()->getId());
I had to do this to make it take notice of both
$qb->select(array('qi'))
->from('Table:Qi', 'qi')
->where("qi.content = " . $content->getId() .
" AND qi.queue = " . $child->getQueue()->getId());
This does not seem right? How can I use the first approach with multiple where
calls?
->where
beforeandWhere
. You can alway use->andWhere();
– Rebeckarebeka