Doctrine 2 - ORM

When merging many to many entites back into the repository changes to the associations are not respected