Is there a way to manipulate a Doctrine 2.6 QueryBuilder (DQL) before the query is sent to the database?
So for example, if we always want two entities to be associated (without lazy loading) then we need to JOIN the other entity's table (for efficiency). So it would be great if we could check if the other entity was joined yet, and if not, join it automatically.
But doctrine doesn't have a preLoad listener...