On 5/17/07, Derek Watson <[EMAIL PROTECTED]> wrote:
> I have gone down a similar path before,
>
> http://www.mail-archive.com/rose-db-object@lists.sourceforge.net/msg01792.html

Yeah, I was about to post that link.  Thanks :)

> When you need to manipulate the map records themselves, setup an
> additional one-to-many relationship in My::Company called "user_maps"
> (or whatever you like) that relates to My::CompanyUser (which is the
> class that does your many-to-many) so that you can easily say
>
> $company->add_user_maps(
>   {
>     restricted => 'true',
>     user => My::User->new(username => 'bob')
>   }
> );

...or just...

$company->add_user_maps(
{
  restricted => 'true',
  user => { username => 'bob' },
});

-John

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to