[MODM-166] recomputeSingleDocumentChangeSet does not work for collections Created: 24/Jun/12 Updated: 27/Jun/12 Resolved: 27/Jun/12
|Project:||Doctrine MongoDB ODM|
|Reporter:||Tim Roediger||Assignee:||Jonathan H. Wage|
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 ]|