Details
Description
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.
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.