[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


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.

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 Thu Sep 03 05:11:00 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.