Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-587

Problem with non equal self referencing many to many relations


    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Relations
    • Labels:
    • Environment:
      Windows 7600 / Linux / PHP 5.2.13 / PHP 5.3.0


      I think that this bug has been reported already here:
      But I thought that it might be useful to submit a very simple test case, with the bug completely isolated.
      When you create a self referenced non equal many-to-many relation like: person has many parents AND has many children (taken from the documentation).

      In the attached test case, after both collections of related records are altered within the foreach statement, Doctrine somehow messes up the Ids in the reference class. Now, it's important to note, that if you loop through just one of the collections, it won't fail.

      Thanks in advance!

      1. person.php
        1 kB
        Nil Null
      2. relation.php
        0.5 kB
        Nil Null
      3. test.php
        0.3 kB
        Nil Null


        There are no comments yet on this issue.


          • Assignee:
            jwage Jonathan H. Wage
            lilawolf Nil Null
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: