Doctrine 2 - ORM

Changes from DDC-1690 trigger a bug in entity merging