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

        Hide
        Daniel Reiche added a comment - - edited

        Test Case of Non-Equal Self-Referencing Relations, based on #DC-329.

        Failure occures in line 75 of the test case file. This should not happen!
        Only the parent object is modified in line 73 and saving should not interfere with the relations.

        Show
        Daniel Reiche added a comment - - edited Test Case of Non-Equal Self-Referencing Relations, based on # DC-329 . Failure occures in line 75 of the test case file. This should not happen! Only the parent object is modified in line 73 and saving should not interfere with the relations.
        Hide
        Paweł Barański added a comment - - edited

        Same ticket on symfony trac because I'm not sure whose fault is it

        http://trac.symfony-project.org/ticket/9398

        Also some new error path there

        Show
        Paweł Barański added a comment - - edited Same ticket on symfony trac because I'm not sure whose fault is it http://trac.symfony-project.org/ticket/9398 Also some new error path there

          People

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

            Dates

            • Created:
              Updated: