Doctrine 2 - ORM

Invalid SQL generated (extra comma) when joining to entity with composite PK