Parent is nil in embedded documents during after_destroy callback

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.1.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Very similar to issue MONGOID-1117 but only happens on the childs own after_destroy callback (before_destroy is not affected).

      Is somehow not triggered when using destroy_all for some reason which was weird so I included that example in the gist.

      Reproduce with:
      https://gist.github.com/1149078

      Introduced in 2.1.8 (I think).

              Assignee:
              Unassigned
              Reporter:
              David Backeus
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: