mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-4105: [GH-1577] [RFC] [BC Break] [3.x] Prototype - merge/detach removal #4916
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Dec 3, 2015).
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of Ocramius:
Url: https://github.com/doctrine/doctrine2/pull/1577
Message:
This PR simply attempts to get rid of
EntityManager#merge()andEntityManager#detach()operations.While
mergeanddetachcan be useful in contexts where entities are being serialized:EntityManager#clear()is a much better API for long-running and multi-threaded processesEntityManager#merge()was to merge data without further queries (when avoidable): the Second Level Cache now solves that problem in a more elegant way.@Majkl578 commented on GitHub (Sep 11, 2017):
#1577 has been merged into develop.