Doctrine 2 - ORM

InvalidArgumentException: New entity detected during merge. Persist the new entity before merging.