Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0.0BETA2
-
Component/s: None
-
Labels:None
-
Environment:Mongo 1.6.1, opensky/mongo-odm/master
Description
If you take an document that has a referenceMany and overwrite a PersistentCollection of data with an array, even of the same data, the data is appended to the collection instead of replacing it.
Are you using the most recent version of Doctrine MongoDB ODM?
I'm asking because there was a bug fix for something where all embedded documents were duplicated.
However I'm also currently investigating a bug where in some cases only one entry does not get removed (although $pullAll is called correctly).