mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2161: Moving entity relationship doesn't move foreign key in mysql table #2719
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 (Nov 22, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user alex88:
Edit: moved the bug to the dbal project, please delete this or set as invalid, new bug:
http://www.doctrine-project.org/jira/browse/DBAL-392
These are the steps I've tried to reproduce the problem:
I see that the foreign key in phpmyadmin is correctly set to Post.id which is correct.
Now:
The situation is now the one you can find in Post2 and Argument attachments.
The problem is that now, the foreign key in Post field it's still on Post.id and not on Argument.id and schema:update says the DB is in sync with the metadata.
Manually deleting the foreign key and running schema:update makes the key being correctly created into Argument.id
@doctrinebot commented on GitHub (Nov 22, 2012):
@doctrinebot commented on GitHub (Nov 24, 2012):
Comment created by @beberlei:
A related Github Pull-Request [GH-234] was opened
https://github.com/doctrine/dbal/pull/234
@doctrinebot commented on GitHub (Nov 25, 2012):
Comment created by @beberlei:
On wrong project, see DBAL-392
@doctrinebot commented on GitHub (Nov 25, 2012):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Feb 3, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-234] was closed:
https://github.com/doctrine/common/pull/234