mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #521] [CLOSED] DDC-2161 Added failing test that moves a foreign key #8318
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/521
Author: @alex88
Created: 11/23/2012
Status: ❌ Closed
Base:
master← Head:DDC-2161📝 Commits (5)
470e41aDCC-2161 Added failing test that moves the foreign key reference23a2df6Fixed typo6577b5cRemoved unused methodsa40e893No need for ArrayCollection7e8a00dRemoved 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.