You need to setup connection, specific repository name in query and declare
them in association.
Please refer to  http://cheat.errtheblog.com/s/datamapper/

  DataMapper.setup(:external, "adapter://username:password@hostname/dbname")
DataMapper.repository(:external) do...end
Association: has n, :things, :repository => repository(:external)


B.Rs
stcatz

在 2012年3月30日星期五,Gabe Anzelini 写道:

> I am need of a setup where I can have on model stored in a pg database
> and another is pulled from a legacy system. I need to have
> relationships between the two and I really only want to specify which
> repository each model is associated with once. Is this possible? And
> if so, where can I find the documentation to do it?
>
> 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]<javascript:;>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:;>.
> For more options, visit this group at
> http://groups.google.com/group/datamapper?hl=en.
>
>

-- 
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.

Reply via email to