doctrine/doctrine2 — pull request #521 by alex88 (2012-11-23 09:24:10+00:00)
Title: DDC-2161 Added failing test that moves a foreign key

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.