Doctrine 2 - ORM

Adding a WITH clause on leftJoin places the JOIN ... AND in the wrong place combined with inheritance mapping