Jira issue originally created by user mmenozzi:
There is a problem that causes duplicate records are created when EntityManager has to remove an entity due to orphanRemoval. The problem occurs only with a double flush and referred object is a proxy.
I'm trying to submit a pull request for this ticket. Please, stand by.
Comment created by @ocramius:
Hey [~mmenozzi], do you remember if this has been fixed? Are you still able to reproduce the problem?
Comment created by mmenozzi:
I made a PR (#625) with an automated test that reproduce the problem. I just ran this test over latest version of doctrine2 and it's still failed. So, the problem has not be fixed and I (or you) can reproduce it easily.
Let me know if I can help you somehow.
Thanks, didn't see it!
Comment created by @doctrinebot:
A related Github Pull-Request [GH-625] was labeled: