DDC-599: Inheritance breaks cascading #734

Open
opened 2026-01-22 12:48:26 +01:00 by admin · 0 comments
Owner

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:

  • Item
  • SubItem (extends Item)
  • Child

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.

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: - Item - SubItem (extends Item) - Child 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.
admin added the Bug label 2026-01-22 12:48:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#734