This was already started in https://github.com/doctrine/doctrine2/pull/1291 but due to v2.4 was "rejected", now that in the composer.json PHP 5.4+ is required I think this upgrade could be done.
This PR simply attempts to get rid of EntityManager#merge() and EntityManager#detach() operations.
While merge and detach can be useful in contexts where entities are being serialized:
See DDC-3434 ( http://www.doctrine-project.org/jira/browse/DDC-3434 )
Ping @glen-84
Fixes DDC-3336 - http://www.doctrine-project.org/jira/browse/DDC-3336