module Neo4j::ActiveRel::Persistence::ClassMethods

Public Instance Methods

create(*args) click to toggle source

Creates a new relationship between objects @param [Hash] props the properties the new relationship should have

   # File lib/neo4j/active_rel/persistence.rb
58 def create(*args)
59   new(*args).tap(&:save)
60 end
create!(*args) click to toggle source

Same as create, but raises an error if there is a problem during save.

   # File lib/neo4j/active_rel/persistence.rb
63 def create!(*args)
64   new(*args).tap(&:save!)
65 end
create_method() click to toggle source
   # File lib/neo4j/active_rel/persistence.rb
67 def create_method
68   creates_unique? ? :create_unique : :create
69 end
load_entity(id) click to toggle source
   # File lib/neo4j/active_rel/persistence.rb
71 def load_entity(id)
72   Neo4j::Relationship.load(id)
73 end