Details
Description
Problem is that UnitOfWork::doMerge() calls ClassMetadata::getIdentifierValues() for the entity but that function doesn't have case for not initialized proxy. It just reads the Id properties from the object's reflection.
It should load the proxy or get the ID stored inside the proxy object or doMerge must initialize it maybe.
I have taken the DDC353 test as the base for this test case.
Hopefully it works because I have executed it in slightly different version without the Doctrine tests environment.