Doctrine 2 - ORM

Generated SQL error with DQL WITH and JOINED inheritance