Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-166

recomputeSingleDocumentChangeSet does not work for collections

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: UnitOfWork
    • 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.

        Activity

        Hide
        Tim Roediger added a comment -

        PR merged

        Show
        Tim Roediger added a comment - PR merged
        Hide
        Tim Roediger added a comment -
        Show
        Tim Roediger added a comment - PR open with fix https://github.com/doctrine/mongodb-odm/pull/336

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Tim Roediger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: