Doctrine 1
  1. Doctrine 1
  2. DC-952

Non-Equal Nest Relations Not Working - from "Children" side

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: Record, Relations
    • Labels:
      None
    • Environment:
      Ubuntu 10.04 + PHP 5.3.3 + Symfony 1.4.8

      Description

      I've copy & pasted example from http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/1_0#relationships:join-table-associations:self-referencing-nest-relations:non-equal-nest-relations .
      I've created User backend module using doctrine:generate-admin backend User task. On how to reproduce the error:

      1. Add 3 User objects (A,B,C)
      2. Open generated edit form for User A.
      3. Set User B as Children from Children list and Save
      4. Set User B and C as Chidren from Children list and Save

      As a result you will see only C set as Children, and strange situation in database :

      UserReference Table:

      parent_id | child_id
      pk_B | pk_B (!!!)
      pk_A | pk_C

        Activity

        Paweł Barański created issue -
        Daniel Reiche made changes -
        Field Original Value New Value
        Attachment DC952TestCase.php [ 10958 ]

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Paweł Barański
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: