-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Persistence
Consider the following mongoid model:
class Location include Mongoid::Document include Mongoid::Timestamps has_and_belongs_to_many :tags, class_name: 'LocationTag', inverse_of: nil end
If we do:
location.update(tags: LocationTag.all.to_a)
the updated_at field of the location doesn't get bumped.
However, if we do:
location.update(tag_ids: LocationTag.all.map(&:id))
It does bump the updated_at.
- has to be done after
-
MONGOID-5321 Ability to group several Mongoid atomic operation calls into one server operation
- Backlog