Doctrine 1
  1. Doctrine 1
  2. DC-587

Problem with non equal self referencing many to many relations

    Details

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

      Description

      I think that this bug has been reported already here:
      http://www.doctrine-project.org/jira/browse/DC-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
      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

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: