Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4476

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Neil Shweky (Inactive)
            Reporter:
            flankerfc@gmail.com FENG Zhichao
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: