mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1972: Throw an exception when setting cascade options which do not exist #2487
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 (Aug 8, 2012).
Originally assigned to: @Majkl578 on GitHub.
Jira issue originally created by user gzankevich:
I made the assumption that the way to define a cascading delete is to do (in YAML):
cascade: [delete]
When it is actually:
cascade: [remove]
It would be nice if Doctrine would throw an exception when the user sets a cascade option which does not exist.