Doctrine 2 - ORM

[GH-502] Fix for invalid 'double-ON' SQL generation with entity inheritance type JOINED.