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

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/521
Author: @alex88
Created: 11/23/2012
Status: Closed

Base: masterHead: DDC-2161


📝 Commits (5)

  • 470e41a DCC-2161 Added failing test that moves the foreign key reference
  • 23a2df6 Fixed typo
  • 6577b5c Removed unused methods
  • a40e893 No need for ArrayCollection
  • 7e8a00d Removed require_once, fixed file name

📊 Changes

1 file changed (+86 additions, -0 deletions)

View changed files

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2161Test.php (+86 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/521 **Author:** [@alex88](https://github.com/alex88) **Created:** 11/23/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `DDC-2161` --- ### 📝 Commits (5) - [`470e41a`](https://github.com/doctrine/orm/commit/470e41a5f7484c998848f6144c845541ea97c963) DCC-2161 Added failing test that moves the foreign key reference - [`23a2df6`](https://github.com/doctrine/orm/commit/23a2df65eb98ebc11218c6c922d8e9cb45158e9a) Fixed typo - [`6577b5c`](https://github.com/doctrine/orm/commit/6577b5ca410243442cfe17a3c4614b6f77d4f30d) Removed unused methods - [`a40e893`](https://github.com/doctrine/orm/commit/a40e89305c13e2991885e0a82581738839f4b3a8) No need for ArrayCollection - [`7e8a00d`](https://github.com/doctrine/orm/commit/7e8a00d340174f14fdef17fb285162d42c1c2962) Removed require_once, fixed file name ### 📊 Changes **1 file changed** (+86 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2161Test.php` (+86 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:59:22 +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#8318