{"action":"created","issue":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1073","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1073/comments","events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1073/events","html_url":"https://github.com/neo4jrb/neo4j/issues/1073","id":122971979,"number":1073,"title":"Neo4j::ActiveRel #reload not working properly?","user":{"login":"ProGM","id":5167659,"avatar_url":"https://avatars.githubusercontent.com/u/5167659?v=3","gravatar_id":"","url":"https://api.github.com/users/ProGM","html_url":"https://github.com/ProGM","followers_url":"https://api.github.com/users/ProGM/followers","following_url":"https://api.github.com/users/ProGM/following{/other_user}","gists_url":"https://api.github.com/users/ProGM/gists{/gist_id}","starred_url":"https://api.github.com/users/ProGM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProGM/subscriptions","organizations_url":"https://api.github.com/users/ProGM/orgs","repos_url":"https://api.github.com/users/ProGM/repos","events_url":"https://api.github.com/users/ProGM/events{/privacy}","received_events_url":"https://api.github.com/users/ProGM/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neo4jrb/neo4j/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars.githubusercontent.com/u/4097271?v=3","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-18T15:48:57Z","updated_at":"2015-12-21T18:23:28Z","closed_at":null,"body":"I tried a code like this, but I'm getting strange results. Is `reload` broken?\r\n```bash\r\nirb(main):003:0> v = MyRel.create(from_node: a, to_node: b)\r\n CYPHER 3ms MATCH (from_node), (to_node) WHERE (ID(from_node) = {from_node_id}) AND (ID(to_node) = {to_node_id}) CREATE UNIQUE from_node-[rel:has_visited {rel_create_props}]->to_node SET rel.`created_at` = {setter_rel_created_at}, rel.`updated_at` = {setter_rel_updated_at}, rel.`times` = {setter_rel_times} RETURN rel | {:from_node_id=>19, :to_node_id=>49, :setter_rel_created_at=>1450453432, :setter_rel_updated_at=>1450453432, :setter_rel_times=>1, :rel_create_props=>{}}\r\n=> #<MyRel created_at: Fri, 18 Dec 2015 15:43:52 +0000, updated_at: Fri, 18 Dec 2015 15:43:52 +0000, times: 1>\r\nirb(main):004:0> v2 = VisitRel.last\r\nDEPRECATION WARNING: The Neo4j::ActiveRel::Query module has been deprecated and will be removed in a future version of the gem. (called from irb_binding at (irb):4)\r\n CYPHER 24ms MATCH (n1:`Person`)-[r1:`has_visited`]->(n2) RETURN r1 ORDER BY ID(r1) DESC LIMIT {limit_1} | {:limit_1=>1}\r\n=> #<VisitRel created_at: Fri, 18 Dec 2015 15:43:52 +0000, updated_at: Fri, 18 Dec 2015 15:43:52 +0000, times: 1>\r\nirb(main):009:0> v.update_attribute(:times, 7)\r\nCYPHER 67ms MATCH (node)-[n]-() WHERE ID(n) = {neo_id} SET n.`updated_at`= {updated_at},n.`times`= {times} | {\"updated_at\"=>1450453502, \"times\"=>7, :neo_id=>1621}\r\nirb(main):017:0> v2.reload.times\r\n CYPHER 3ms MATCH n WHERE (ID(n) = {ID_n}) RETURN n | {:ID_n=>1621}\r\n=> 1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments/166381873","html_url":"https://github.com/neo4jrb/neo4j/issues/1073#issuecomment-166381873","issue_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/1073","id":166381873,"user":{"login":"subvertallchris","id":4097271,"avatar_url":"https://avatars.githubusercontent.com/u/4097271?v=3","gravatar_id":"","url":"https://api.github.com/users/subvertallchris","html_url":"https://github.com/subvertallchris","followers_url":"https://api.github.com/users/subvertallchris/followers","following_url":"https://api.github.com/users/subvertallchris/following{/other_user}","gists_url":"https://api.github.com/users/subvertallchris/gists{/gist_id}","starred_url":"https://api.github.com/users/subvertallchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subvertallchris/subscriptions","organizations_url":"https://api.github.com/users/subvertallchris/orgs","repos_url":"https://api.github.com/users/subvertallchris/repos","events_url":"https://api.github.com/users/subvertallchris/events{/privacy}","received_events_url":"https://api.github.com/users/subvertallchris/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T18:23:28Z","updated_at":"2015-12-21T18:23:28Z","body":"Just merged in a fix. Haven't released, but you can try 276ac2f5dadba6aac9260e72b591256645241917 on master or 71ee0b496e0d0ec871e73cc38b67a05a0064b518 on 6.0.0x."}}