#121 ✓resolved
Bobby Calderwood

Classes mixing in Neo4j::RelationshipMixin don't respond to :getOtherNode

Reported by Bobby Calderwood | July 17th, 2010 @ 10:07 PM | in 0.4.4

require 'neo4j'

class Rel
  include Neo4j::RelationshipMixin

Neo4j::Transaction.run do
  a = Neo4j::Node.new
  b = Neo4j::Node.new
  c = Neo4j::Node.new
  d = Neo4j::Node.new

  Neo4j::Relationship.new(:rel, c, d)

  # doesn't raise an error
  d.rels.incoming(:rel).nodes.each{|n| puts n}
  Rel.new(:rel, a, b)
  # raises an error, the instance of Rel doesn't respond to :getOtherNode
  b.rels.incoming(:rel).nodes.each{|n| puts n}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails

People watching this ticket

Referenced by