sql
WHERE code= 'abc' AND (column_name NOT IN ('436') or column_name is null)
Doctrine code
->innerJoin('Bundle:Web', 'p', 'WITH', 'b.pid= p.id')
->where('a.code= :cust_id')
->andWhere('p.column_name NOT IN ( :id)')
->setParameter('id', array_keys($id)[0])
->orWhere('p.column_name is null')
Running Dql gives different Result in Symfony2.
- any suggestion is most welcome.