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

Expand documentation of which association operations immediately save documents

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Docs

      In https://jira.mongodb.org/browse/MONGOID-4484 documentation was started for which operations on associations immediately save documents (assignment, push and <<). This list should be expanded to cover the remaining operations.

      In https://github.com/mongodb/mongoid/pull/5225 shields@tablecheck.com suggested that clear and destroy also immediately save documents.

      push, <<
      destroy, delete
      assign_attributes (this can be used for individual attribute write or setting an entire association target, see MONGOID-5364)

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: