Doctrine 2 - ORM

[GH-553] Fix adding multiple joins.