Hi--
How do I define a self-referential join? Something like:
class Thing
has n, :ownerships
has n, :owns, :through => :ownerships
end
class Ownership
belongs_to :owner, :model => Thing
belongs_to :owns, :model => Thing
end
Or is it just:
class Thing
has n, :things, :through => Resource
end
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.