-
Type: Improvement
-
Resolution: Unresolved
-
Priority: 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)
- related to
-
MONGOID-5364 assign_attributes to embedded child & deleting in the same association which itself is embedded produces bogus results
- Backlog
-
MONGOID-4484 Clarify that association assignment saves documents
- Closed