-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Associations, Persistence
-
None
Is this a bug or is this a known limitation that could be documented? Seems like it would affect many simple use cases like embedded user preferences.
Mongoid::VERSION #=> "3.1.6" class Parent include Mongoid::Document include Mongoid::Timestamps embeds_one :child, cascade_callbacks: true before_create :build_child end class Child include Mongoid::Document include Mongoid::Timestamps embedded_in :parent end parent = Parent.create child = parent.child child.persisted? #=> true child.created_at #=> nil
- depends on
-
MONGOID-3795 Clarify/improve order of callback invocation on embedded associations vs host documents
- Closed
- is related to
-
MONGOID-3468 Always touch parents of embedded documents when embedded documents are touched
- Closed