-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safeguard for identity map seems to break merge #10820
Comments
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. |
The object you’re trying to merge (which has been serialized previously, if I get you right), is that a proxy instance? |
I tested 2.17.3 and 2.17.4 today. It seems like the issue does not longer exist also I tested #10867 which seems also be fixed there I know it was fixed in 2.16.1. |
I'm currently running into the following issues since: #10785
BC Break Report
Summary
For me it looks this currently breaks the existing
EntityManager::merge
method. 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 tomerge
into the entityManager. https://github.com/sulu/sulu/blob/f977ffc0f480cb1d4ddee9cde0cbb8a881011d91/src/Sulu/Bundle/AudienceTargetingBundle/Entity/TargetGroupRepository.php#L33Should 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
The text was updated successfully, but these errors were encountered: