-
Type: Bug
-
Resolution: Unresolved
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: Associations
I've set up a repository to describe this behavior : https://github.com/Intrepidd/mongoid-bug-assignation
It seems that when retrieving a relationship object, a reference to it is conserved internally, and updated when the reference itself is updated.
It's very dangerous as local variables can have their content changed and is extremely difficult to debug.
Is this a known and wanted behavior ?
Thanks
- is duplicated by
-
MONGOID-4767 Unexpected side effect when assigning to a belongs_to relation
- Closed