-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Associations, Validations
class A include Mongoid::Document embeds_one :b validates_presence_of :b end class B include Mongoid::Document embedded_in :a end > a=A.new > a.b=B.new > a.save => true > a.b=nil (it saves the document skipping 'a' validations) > A.last.b => nil > A.last.valid? => false
- related to
-
MONGOID-4597 model#update commits changes in associations when top level model is invalid
- Backlog
-
MONGOID-4925 Option to validate documents when adding to HABTM associations
- Backlog
-
MONGOID-5297 Do not immediately save embedded associations upon assignment
- Backlog
- links to