Warn about "ON DELETE RESTRICT" #7167

Open
opened 2026-01-22 15:45:57 +01:00 by admin · 0 comments
Owner

Originally created by @greg0ire on GitHub (Jun 21, 2023).

As mentioned in https://github.com/doctrine/orm/pull/10763, ON DELETE RESTRICT might give a false sense of security if the ORM takes the initiative to do the removal on its own. Maybe we should look for such cases and warn against it in the validator?

Originally created by @greg0ire on GitHub (Jun 21, 2023). As mentioned in https://github.com/doctrine/orm/pull/10763, `ON DELETE RESTRICT` might give a false sense of security if the ORM takes the initiative to do the removal on its own. Maybe we should look for such cases and warn against it in the validator?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7167