Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-BETA1
-
Fix Version/s: 2.0-BETA3
-
Component/s: ORM
-
Security Level: All
-
Labels:None
-
Environment:PHP-Version 5.3.2
PHPUnit-Version 3.4.11
PDO Driver for MySQL, client library version => 5.0.83
doctrine-trunk@7546
Kubuntu 9.10 / 32bit
Description
If loading an entity without its -to-many-collections, detaching and merging it back WITHOUT having touched those associations will result in two strange behaviours:
oneToMany (bidrectional, mapped by loaded entity): After merge the collection remains empty. Flushing EM and reloading entity will reveal associated entities again
manyToMany (bidirectional, mapped by targeted entity): After merge the collection remains empty. Flushing EM will physically delete associations.
- ----------------- !! NOTE !! --------------------
- To reproduce the manyToMany-Bug it's necessary
- to cascade "merge" on cmUser::groups
- -------------------------------------------------
Forgot to tell trunk revision