Doctrine 2 - ORM

Orm:generate-entities generates incorrect code when it has multiple relations with the same entity