Skip to content
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

incorrect unit of work when using association class #11189

Open
wickedOne opened this issue Jan 28, 2024 · 0 comments
Open

incorrect unit of work when using association class #11189

wickedOne opened this issue Jan 28, 2024 · 0 comments

Comments

@wickedOne
Copy link
Contributor

wickedOne commented Jan 28, 2024

Bug Report

Q A
BC Break no
Version 2.17.x

Summary

the unit of work appearss "polluted" after persist -> flush -> clear -> find -> remove -> flush routine

Current behavior

when a parent class has a child collection using an association class, the unit of work contains proxy classes after removal of the entities when the entity manager is cleared in between persisting and removing. nevertheless, these entities are no longer present in the database

How to reproduce

check the code in this POC to reproduce

Expected behavior

expected behaviour would be the proxy classes not to be present in the unit of work after the second flush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant