Jira issue originally created by user alex88:
Edit: moved the bug to the dbal project, please delete this or set as invalid, new bug:
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.
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
Comment created by @beberlei:
A related Github Pull-Request [GH-234] was opened
On wrong project, see DBAL-392
Issue was closed with resolution "Invalid"
Comment created by @doctrinebot:
A related Github Pull-Request [GH-234] was closed: