It looks like you can do the following:
class User
include DataMapper::Resource
has n, :posts, :repository => repository(:posts)
end
or,
class User
include DataMapper::Resource
repository(:posts) do
has n, :posts
end
end
On Nov 8, 12:49 pm, GTD Wanabe <[EMAIL PROTECTED]> wrote:
> Does datamapper support association across multiple database repos?
> I can't figure out how to do it from the doc, can anyone help?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---