{"action":"created","issue":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/813","labels_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/813/comments","events_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/813/events","html_url":"https://github.com/neo4jrb/neo4j/issues/813","id":79471515,"number":813,"title":"Relations has_many :out not return result","user":{"login":"JeremyPinhel","id":1647898,"avatar_url":"https://avatars.githubusercontent.com/u/1647898?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremyPinhel","html_url":"https://github.com/JeremyPinhel","followers_url":"https://api.github.com/users/JeremyPinhel/followers","following_url":"https://api.github.com/users/JeremyPinhel/following{/other_user}","gists_url":"https://api.github.com/users/JeremyPinhel/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyPinhel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyPinhel/subscriptions","organizations_url":"https://api.github.com/users/JeremyPinhel/orgs","repos_url":"https://api.github.com/users/JeremyPinhel/repos","events_url":"https://api.github.com/users/JeremyPinhel/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyPinhel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-22T14:16:06Z","updated_at":"2015-05-22T16:27:42Z","closed_at":"2015-05-22T16:27:42Z","body":"Hi,\r\n\r\nI have some problem when I try to get companies link to my node user. I use the gem with Rails 4.2\r\n\r\n``` ruby\r\nclass Graph::User\r\n  include Neo4j::ActiveNode\r\n\r\n  property :ext_id, type: Integer, constraint: :unique, index: :exact\r\n\r\n  property :email, type: String, index: :exact\r\n\r\n  has_many :out, :companies, type:'work_with', model_class: 'Graph::Company'\r\nend\r\n\r\nclass Graph::Company\r\n  include Neo4j::ActiveNode\r\n\r\n  property :ext_id, type: Integer, constraint: :unique, index: :exact\r\n\r\n  property :name, type: String, index: :exact\r\n\r\n  has_one :in, :creator, type: 'founder', model_class: 'Graph::User'\r\nend\r\n```\r\nWhen I try to get companies of user:\r\n `user.companies`\r\n\r\nThe result return:\r\n`#<Neo4j::ActiveNode::Query::QueryProxy:0x007fcc73854b60 @model=Graph::Company(country: String, ext_id: Integer, name: String), @association=#<Neo4j::ActiveNode::HasN::Association:0x007fcc7c9521a8 @type=:has_many, @name=:companies, @direction=:out, @target_class_name_from_name=\"Company\", @target_class_option=\"::Graph::Company\", @callbacks={:before=>nil, :after=>nil}, @origin=nil, @relationship_class=\"Graph::WorkWith\", @relationship_type=nil, @dependent=nil, @unique=nil, @target_class_name=\"::Graph::Company\", @target_class_name_or_nil=\"::Graph::Company\">, @context=\"Graph::User#companies\", @options={:session=>Neo4j::Server::CypherSession url: 'http://graphdb:7474/db/data/' version: '2.2.1', :start_object=>#<Graph::User email: \"\", ext_id: 1>, :node=>nil, :rel=>nil, :optional=>nil, :caller=>#<Graph::User email: \"\", ext_id: 1>}, @node_var=nil, @rel_var=:rel0, @session=Neo4j::Server::CypherSession url: '' version: '2.2.1', @caller=#<Graph::User email: \"\", ext_id: 1>, @chain_level=nil, @chain=[], @starting_query=nil, @optional=nil, @params={}>`\r\n\r\nI don't understand what I did wrong."},"comment":{"url":"https://api.github.com/repos/neo4jrb/neo4j/issues/comments/104704602","html_url":"https://github.com/neo4jrb/neo4j/issues/813#issuecomment-104704602","issue_url":"https://api.github.com/repos/neo4jrb/neo4j/issues/813","id":104704602,"user":{"login":"JeremyPinhel","id":1647898,"avatar_url":"https://avatars.githubusercontent.com/u/1647898?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremyPinhel","html_url":"https://github.com/JeremyPinhel","followers_url":"https://api.github.com/users/JeremyPinhel/followers","following_url":"https://api.github.com/users/JeremyPinhel/following{/other_user}","gists_url":"https://api.github.com/users/JeremyPinhel/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyPinhel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyPinhel/subscriptions","organizations_url":"https://api.github.com/users/JeremyPinhel/orgs","repos_url":"https://api.github.com/users/JeremyPinhel/repos","events_url":"https://api.github.com/users/JeremyPinhel/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyPinhel/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T16:27:42Z","updated_at":"2015-05-22T16:27:42Z","body":"ok thank you !"}}