Writes in callbacks of nested embedded documents are not persisted when top-level document is modified via update_attributes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.1
    • Affects Version/s: 6.2.1
    • None
    • Environment:
      Mac 10.12, Mongoid 6.2.1, mongodb 3.2.11
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      I created a pull request which contains a failed test to show this issue:

      https://github.com/mongodb/mongoid/pull/4444

      Basically it is `band` `record` `track` three levels nested embedded document. When updating band, updates in callbacks of `track` model are not persisted.

      There was another issue before: https://jira.mongodb.org/browse/MONGOID-4425 it looks related.

      Thanks a lot in advanced.

              Assignee:
              Neil Shweky (Inactive)
              Reporter:
              FENG Zhichao
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: