When there are several instances of ActiveNode representing the same node, updates in values/properties in one instance is not propagated to the other instances.
I assume it's related to the ActiveNode instances caches not being reset. I would have somehow expected that the changes would be propagated to all instances.
Code example
# assuming the following node
class Tag
include Neo4j::ActiveNode
property :name, type: String
end
# test code
tag = Tag.create name: 'foo'
clone = Tag.find tag.uuid
tag.name = 'bar'
tag.save
assert_equal Tag.find(tag.uuid).name, tag.name # SUCCEEDS
assert_equal clone.name, tag.name # FAILS
When there are several instances of ActiveNode representing the same node, updates in values/properties in one instance is not propagated to the other instances.
I assume it's related to the ActiveNode instances caches not being reset. I would have somehow expected that the changes would be propagated to all instances.
Code example
Runtime information:
Neo4j database version: 3.4.9 Community
neo4j
gem version: 9.2.4neo4j-core
gem version: 8.1.4