Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2165

[GH-521] DDC-2161 Added failing test that moves a foreign key

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-521] was closed https://github.com/doctrine/doctrine2/pull/521
        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-521] was closed: https://github.com/doctrine/dbal/pull/521

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: