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

After being nullified, related documents can't be re-added to a relation

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

      With a has_many relation, if the relation is ever #nullify-ed, the same (in-memory) objects that were in it can't be added back without a reload, because their foreign keys are never saved again.

      Interaction that reproduces it in the gist.

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

              Created:
              Updated:
              Resolved: