[PR #521] DDC-2161 Added failing test that moves a foreign key #8322

Closed
opened 2026-01-22 15:59:22 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/521

State: closed
Merged: No


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.

**Original Pull Request:** https://github.com/doctrine/orm/pull/521 **State:** closed **Merged:** No --- 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 pull-request label 2026-01-22 15:59:22 +01:00
admin closed this issue 2026-01-22 15:59:23 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8322