Doctrine 2 - ORM

Doctrine DQL: erroneous sql generation from dql join with "WITH" or "WHERE" clause