-
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
DDC-3619: spl_object_hash collision #4444
Comments
Comment created by @Ocramius: {quote}spl_object_hash($user2) may be equal to spl_object_hash($user) because $user has no reference{quote} this seems wrong, since |
Comment created by Akhristenko: Why? The $user has no reference to it, so it may be collected.
|
Comment created by @Ocramius: [~Akhristenko] the UoW has an internal reference to |
Comment created by @Ocramius: I suggest abstracting this problem into a test case in order to remove these doubts upfront. |
Comment created by Akhristenko: {quote} |
Comment created by Akhristenko: I attached the test, which demonstrates that reference to entity from UoW is lost. |
Comment created by nclavaud: I am also using SoftDeleteable Doctrine extension (https://github.com/Atlantic18/DoctrineExtensions) and facing a similar issue. My scenario is:
Problem is: 1 of the 3 entities won't be persisted (same $oid than one of the soft-deleted ones). I've created a PR here that solves my issue: Does it make sense to you? |
Comment created by @doctrinebot: |
Issue was closed with resolution "Fixed" |
Jira issue originally created by user Akhristenko:
The code below demonstrate problem.
The text was updated successfully, but these errors were encountered: