I'm not sure how that helps in my case.. But anyway, in the meanwhile
irc channel helped (although I didn't have time to check if it works).
The solution should be:

        belongs_to :reporter, :model => "User"
        belongs_to :asignee, :model => "User"

Looks like it should work...


On Mar 30, 3:15 pm, Richard Conroy <[email protected]> wrote:
> 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%2bunsubscr...@googlegrou 
> > ps.com>
> > .
> > 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