Try: belongs_to :challenger, :model => 'User', :child_key => [:challenger_id] belongs_to :challengee, :model => 'User', :child_key => [:challengee_id]
-Gary On Dec 23, 11:28 am, Michal Hantl <[email protected]> wrote: > Hello, the manual says I can do: > > class Game > include DataMapper::Resource > > belongs_to :challenger, 'User' > belongs_to :challengee, 'User' > ... > end > > But when I run the code it says > > +other+ should be DataMapper::Query or Hash, but was User > > on the challenger field > > I am using DM 0.10.2 an jruby > > Thanks -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
