07/06/2015 - DOCTRINE
We have two options for where not in
clause.
....
->createQuery('e')
->whereNotIn('e.id', [1, 2, 3 .....]))
->
.....;
$qb = $this->createQueryBuilder('e');
$qp
->select('e')
->where($qb->expr()->notIn('e.id', [1, 2, 3 .....]))
->getQuery()
->getResult();