mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-808: Deleted OneToOne relationship not detected #995
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 (Sep 15, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user lstrojny:
When using automatic change detection, the attached scenario is not detected. I have an aggregate root with a OnetoOne relation. The OneToOne relation to OTORel is set up in OneToOne::start(). The creation of the OTORel is detected and stored. But when OneToOne::stop() sets the OTORel instance to null, the instance is not removed from the database.
Result:
Expected result would be, that the OTORel table is empty.
@doctrinebot commented on GitHub (Sep 21, 2010):
Comment created by @beberlei:
I think I found the problem, you have defined "mappedBy" on both relations. Hence both relations sides are the Inverse side, none the owning. Try:
does this give an error for you?
@doctrinebot commented on GitHub (Oct 31, 2010):
Comment created by @beberlei:
No further feedback was provided, closing due to invalid mapping.
@doctrinebot commented on GitHub (Oct 31, 2010):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 3 attachments from Jira into https://gist.github.com/eee5aa346ad71eb73280