Doctrine 2 - ORM

Merging an entity with a one to one association to a MANAGED entity with no id throws 'The given entity has no identity.'