DDC-2165: [GH-521] DDC-2161 Added failing test that moves a foreign key #2726

Closed
opened 2026-01-22 14:01:45 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 23, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of alex88:

Url: https://github.com/doctrine/doctrine2/pull/521

Message:

I'm including a test that should pass once the DCC-2161 is fixed.

As I'm stating in the bug, when you create an entity with a self-referencing bidirectional oneToMany, then you create another entity and move the oneToMany to that entity, changing the targetEntity in the ManyToOne, doing a schema:update doesn't move the foreign key reference inside the Mysql table.

Originally created by @doctrinebot on GitHub (Nov 23, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of alex88: Url: https://github.com/doctrine/doctrine2/pull/521 Message: I'm including a test that should pass once the DCC-2161 is fixed. As I'm stating in the bug, when you create an entity with a self-referencing bidirectional oneToMany, then you create another entity and move the oneToMany to that entity, changing the targetEntity in the ManyToOne, doing a schema:update doesn't move the foreign key reference inside the Mysql table.
admin added the Bug label 2026-01-22 14:01:45 +01:00
admin closed this issue 2026-01-22 14:01:46 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 24, 2012):

Comment created by @beberlei:

A related Github Pull-Request [GH-521] was closed
https://github.com/doctrine/doctrine2/pull/521

@doctrinebot commented on GitHub (Nov 24, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-521] was closed https://github.com/doctrine/doctrine2/pull/521
Author
Owner

@doctrinebot commented on GitHub (Dec 23, 2012):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Dec 23, 2012): Issue was closed with resolution "Invalid"
Author
Owner

@doctrinebot commented on GitHub (Jan 29, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-521] was closed:
https://github.com/doctrine/dbal/pull/521

@doctrinebot commented on GitHub (Jan 29, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-521] was closed: https://github.com/doctrine/dbal/pull/521
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2726