mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
SchemaTool drops FK constraints and re-adds needlessly #6369
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 @oojacoboo on GitHub (Dec 13, 2019).
Bug Report
SchemaTooldrops and re-generates FK constaints needlessly.Summary
When using the
orm:schema-tool:update, the--dump-sqloutput drops foreign keys and then adds constraints needlessly.Current behavior
I'm assuming the issue is that the name of the FK isn't what Doctrine wants. Maybe adding an annotation property to allow to define the name of the FK is necessary.
How to reproduce
SchemaToolExpected behavior
Do nothing, the constraints are correct