Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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!