-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Associations
-
None
This ticket is related to MONGOID-5296 specifically for embedded associations. Refer to MONGOID-5296 for further context.
Saving on association assignment is doubly-frustrating for embedded documents, because embedded documents should behave like fields. It is always confusing/surprising/unwanted when modifying embedded documents in-Ruby-memory triggers the parent to save.
This applies (but is not limited) to =, <<, .push, .clear, {}.destroy
- is related to
-
MONGOID-3573 nullifying, deleting or destroying an embedded document doesn't trigger validations on base document
- Backlog
- related to
-
MONGOID-5296 Do not immediately save referenced associations upon assignment
- Backlog
-
MONGOID-5519 Updating an embedded Mongoid::Document updates the array immediately
- Backlog