我在两个类之间有两种类型的关系。在其中一个中,我需要建立origin
,但我不知道如何。有人知道吗?
class A
include Neo4j::ActiveNode
...
has_many :out, :method1, model_class: B
has_many :out, :method2, model_class: B
...
end
class B
include Neo4j::ActiveNode
...
has_one :in, :something, model_class: A, origin: ?????
...
end
图形
关系的类型是默认类型(“#”+ 方法的名称)。