-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Associations, Callbacks
-
None
I've just encountered a problem whereby no callbacks e.g. before_save are called on an embedded document (with cascade_callbacks: true) if there are no changes to the document. I need the before_save to be fired even if there are no attribute changes as if an upload was successful for example, I would need to write the filename attribute.
Is there any way to force the callbacks? I would have thought that they should be triggered regardless.
- is related to
-
MONGOID-4896 Expose changes in embedded documents on top-level document
- Closed
- related to
-
MONGOID-4258 Autosave does not cascade unless all items are "dirty"
- Closed