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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: 5.0.2
    • Component/s: None
    • Labels:

      Description

      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 ?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: