mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1193: cascadeRemove misses associations due to proxy not being initialized #1502
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 (Jun 3, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user xanf:
Let's assume you have two One-to-One relations A>B>C (all include cascade remove). You are deleting object A, while object B is not initialized (and so it will be a proxy). In that case the object C is not deleted because UOW misses relation B>C since proxy of B is not initialized
@doctrinebot commented on GitHub (Jun 3, 2011):
@doctrinebot commented on GitHub (Jun 3, 2011):
Comment created by xanf:
Test case. Expected to be put into Tests/ORM/Functional/Ticket folder
@doctrinebot commented on GitHub (Jun 3, 2011):
Comment created by xanf:
Right now i'm using this hack inside of UOW:
As stated by beberlei IIRC, we should add public method to the generated proxy class "**doctrineInitializeProxy" or something
@doctrinebot commented on GitHub (Jun 5, 2011):
Comment created by @beberlei:
Fixed and merged into 2.0.x
@doctrinebot commented on GitHub (Jun 5, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/5dc5613ebbbb0ff6f030