I have only been using Datamapper a bit, but its starting to click for me.

I think the best way to deal with this issues is to introduce another
table/model
for the user role:

Issue
  has n, :users, :through => :roles
end

I believe the above is close to the correct syntax.

On Tue, Mar 30, 2010 at 8:53 AM, zorglub76 <[email protected]> wrote:

> Hi all,
> I've just started using datamapper and I have the following problem:
> I have an "Issue" model and a "User" model. An issue can have
> "reporter" property (of type User) and "asignee" property (of type
> User).
> How do i map that in datamapper?
>
> --
> 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]<datamapper%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/datamapper?hl=en.
>
>


-- 
http://richardconroy.blogspot.com

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