mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-599: Inheritance breaks cascading #734
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 (May 18, 2010).
Jira issue originally created by user nicokaiser:
When using inheritance, cascade={"delete"} does not work anymore:
This example creates three Entities:
The Item has a OneToMany association with Child with cascade={"delete"}, so if an Item is deleted, its Children are deleted too.
http://pastie.org/965096
However this does not work, the cascade is ignored when the Item is deleted. Without inheritance (e.g. only Item with Children) it works perfectly.