mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Safeguard for identity map seems to break merge #7174
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 @alexander-schranz on GitHub (Jul 6, 2023).
I'm currently running into the following issues since: https://github.com/doctrine/orm/pull/10785
BC Break Report
Summary
For me it looks this currently breaks the existing
EntityManager::mergemethod. I know merge is deprecated but it is used in this case as the object get not retriefied from the database instead unserialized and then crashes when it tries tomergeinto the entityManager.f977ffc0f4/src/Sulu/Bundle/AudienceTargetingBundle/Entity/TargetGroupRepository.php (L33)Should not merged entities not show this identiy map warning as they got merged and only persisted?
Previous behavior
Don't did crash on current implemented method.
Current behavior
Crashes with a new method.
How to reproduce
@mpdude commented on GitHub (Aug 2, 2023):
Can you provide an isolated test case for ORM?
To avoid regressions, we need to have that test in our own suite, we cannot run Sulu's tests in our CI.
@mpdude commented on GitHub (Aug 2, 2023):
The object you’re trying to merge (which has been serialized previously, if I get you right), is that a proxy instance?
@alexander-schranz commented on GitHub (Jan 29, 2024):
I tested 2.17.3 and 2.17.4 today. It seems like the issue does not longer exist also I tested https://github.com/doctrine/orm/issues/10867 which seems also be fixed there I know it was fixed in 2.16.1.