[Nitro] Schema Inheritance

Emmanuel Piperakis epiperak at softlab.ece.ntua.gr
Sun Nov 27 23:04:20 EST 2005

I have a small problem to report.
class A
  property :koko, String

class AA < A
  property :haha, String

a = AA.new
b = A[oid] #Fails

undefined method `result' for #<Array:0x407d26e0>

/usr/lib/ruby/gems/1.8/gems/og-0.25.0/lib/og/entity.rb:127:in `find_one'
./src/controller.rb:82:in `project_sel'
(eval):12:in `project_sel_action'

probably something to do with the following line in sql.rb
Any ideas?

ps. b = A.find(:condition => "oid =#{oid}")[0]
works find... but...it is toooo long

     klass = 
if klass.schema_inheritance?

Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
  To teach is Primal, to Rule is Sin}

More information about the Nitro-general mailing list