I need to construct DQL with a QueryBuilder like this
QueryBuilder
[QUERY]... AND WHERE e.type = x OR e.type = Y OR e.type = N [...]
I hav
You can also use ... in php like:
...
$conditions = array('e.type = x', 'e.type = Y', 'e.type = N'); $criteria = Criteria::create(); $criteria->andWhere(Criteria::expr()->orX(...$conditions));