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

[Docs] Relations: Referenced 1-1: Operations: Model#{name}=

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.2
    • Affects Version/s: None
    • Component/s: None

      The method description says (bolded text is me):

      > Set the child document. If the parent document is persisted, then the child will be saved immediately. If setting to nil then the child will be deleted.

      This is scary and doesn't seem to be true. Is it? Seems like a copy/paste error from Embedded 1-1, or maybe the default used to be dependent: :destroy ?

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

              Created:
              Updated:
              Resolved: