I'd like to achieve something like this:
WHERE ( statement1 OR statement2 ) AND statement3
How can I achieve this with query builder?
I have tried this before:
Entity.createQueryBuilder()
.where(statement1)
.orWhere(statement2)
.andWhere(statement3);
But it produces following query:
WHERE statement1 OR statement2 AND statement3