mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2106: Notice trying to match a Criteria referencing a managed entity not yet persisted #2652
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 @doctrinebot on GitHub (Oct 29, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user frosas:
As a workaround I had to control this case explicitly:
@doctrinebot commented on GitHub (Feb 9, 2013):
Comment created by @asm89:
Can you provide us with the mapping of your entities? The code shouldn't get to the point where it asks for the identifier of the object while the object isn't persisted yet.
@doctrinebot commented on GitHub (Feb 10, 2013):
Comment created by frosas:
I'm not sure mapping can help to solve this and is quite a work for me to get it without the client details. Anyway I'll try to reproduce it in a custom scenario if you require it.
I've been doing some debugging and I got this:
Hope it helps.
@doctrinebot commented on GitHub (Feb 10, 2013):
Comment created by @asm89:
If you can create a testcase and send a PR with it that would be very helpful. You can create it and put in in the appropriate class here:
https://github.com/doctrine/doctrine2/tree/master/tests/Doctrine/Tests/ORM/Functional/Ticket
@doctrinebot commented on GitHub (Feb 16, 2013):
Comment created by frosas:
Here you have: https://github.com/doctrine/doctrine2/pull/582
@doctrinebot commented on GitHub (May 1, 2013):
Comment created by @beberlei:
Fixed in 2.4
@doctrinebot commented on GitHub (May 1, 2013):
Issue was closed with resolution "Fixed"