neo4jrb / activegraph

An active model wrapper for the Neo4j Graph Database for Ruby.
http://neo4jrb.io
MIT License
1.39k stars 276 forks source link

id_property setting in application config does not take effect when there is inheritance on model #1622

Closed amitsuryavanshi closed 3 years ago

amitsuryavanshi commented 3 years ago

When you have set id_property in config/application.rb and you have inheritance of models in application the base model id_property is set as uuid. The settings in application.rb does not take effect.

Additional information which could be helpful if relevant to your issue:

Code example (inline, gist, or repo)

Class X
  include ActiveGraph::Node
end

Class Y < X
end

config/application.rb => config.neo4j.id_property = :neo_id

X.id_property_info => {:name=>:uuid, :type=>{:auto=>:uuid}, :inherited=>false}

Runtime information:

Neo4j database version: activegraph gem version: 10.0.0

amitsuryavanshi commented 3 years ago

Invalid..