[MODM-166] recomputeSingleDocumentChangeSet does not work for collections Created: 24/Jun/12  Updated: 27/Jun/12  Resolved: 27/Jun/12

Status: Resolved
Project: Doctrine MongoDB ODM
Component/s: UnitOfWork
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tim Roediger Assignee: Jonathan H. Wage
Resolution: Fixed Votes: 0
Labels: None


 Description   

If you have a document with a collection, during computation of the changeSet before persist a reference to that collection is placed in originalData, not a copy. Therefore, if you change the collection in an onFlush event listener, then call recomputeSingleDocumentChangeSet, the changes to the collection are not recognised, because the originalData has changed also.

I will create a test, and hopefully fix for this soon.



 Comments   
Comment by Tim Roediger [ 26/Jun/12 ]

PR open with fix https://github.com/doctrine/mongodb-odm/pull/336

Comment by Tim Roediger [ 27/Jun/12 ]

PR merged

Generated at Tue Oct 21 02:24:25 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.