You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# GivenNeo4j::Config[:association_model_namespace]='Graph'Neo4j::Config[:module_handling]=:demodulizemoduleGraphclassMyRelincludeNeo4j::ActiveRel# Venue is namespaced as Graph::Venue to avoid conflicts with ::Venuefrom_class:Venue# etcendend# This should not happenMyRel.create(graph_venue,graph_event)NoMethodError: undefinedmethod `mapped_label_name' for#<Class:0x007fadd3248348>
There's also an issue with rel_class in associations. I ended up having less time than I thought so couldn't get to a fix, will do it soon.
The text was updated successfully, but these errors were encountered:
I was discussing this with @leviwilson the other day. I think that the default behavior for ActiveRel should be to demodulize and you should need to configure to include the module. After all, if you have Graph::MyRel and Foo::MyRel, it doesn't matter if you have multiple relationships that have the same type of MY_REL (or my_rel, depending on your settings). Also it's just weird if you were to do GRAPH_MY_REL / FOO_MY_REL by default. The class name is almost always what's describing the relationship type.
@leviwilson ran into this originally because it was trying to do Graph::MyRel as the relationship type without using backticks and giving an error (perhaps that's what you got as well).
There's also an issue with
rel_class
in associations. I ended up having less time than I thought so couldn't get to a fix, will do it soon.The text was updated successfully, but these errors were encountered: