lib/neo4j/relations/has_n.rb
# Creates a relationship instance between this and the other node.
# If a class for the relationship has not been specified it will be of type DynamicRelation.
#
# :api: public
Creates a relationship instance between this and the other node.
If a class for the relationship has not been specified it will be of type DynamicRelation.

:api: public
Creates a relationship instance between this and the other node . If a class for the relationship has not been specified it will be of type DynamicRelation . : api : public
def new(other)
        from, to = @node, other
        from,to = to,from unless @info[:outgoing]
        r = Neo4j::Transaction.run {
          from.internal_node.createRelationshipTo(to.internal_node, @type)
        }
        from.class.relations_info[@type.name.to_sym][:relation].new(r)
      end
def new ( other ) from , to = @node , other from , to = to , from unless @info [ :outgoing ] r = Neo4j :: Transaction . run { from . internal_node . createRelationshipTo ( to . internal_node , @type ) } from . class . relations_info [ @type . name . to_sym ] [ :relation ] . new ( r ) end
Creates a relationship instance between this and the other node.
Creates a relationship instance between this and the other node .
other
<not_specific>