What is the current way to accomplish this? Based on looking at the
code this is the best I could come up with:
class User
include DataMapper::Resource
has n, :followers, :class_name => 'User',
:through => Resource, :child_key => :following_id, :parent_key
=> :follower_id
property :id, Serial
property :screen_name, String, :nullable => false
property :name, String
end
Results in a error when something calls nil.length.
If I get rid of parent_key the migration works, but only creates one
column in the relational table and obviously things don't work.
I've tried many other ways including using a join object.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---