On Mon, 17 Dec 2007 21:03:52 -0800
Michael Higgins <[EMAIL PROTECTED]> wrote:

> On Mon, 17 Dec 2007 20:09:23 -0800
> Michael Higgins <[EMAIL PROTECTED]> wrote:
> 
> > On Mon, 17 Dec 2007 20:47:20 -0700
> > Jay K <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi Michael,
> > > 
> > > Unfortunately the Tutorial is a bit out of date.

[8<]

> Do I go about redefining my 'roles' as '1', '2', '3'?? Or do I have to
> change my database configuration?

. . . [reply to self again]

Okay, it appears as if the join table is no longer needed? (I don't
know why it was needed before, but it's part of the tutorial, IIRC.)

So, I have a table "users" and "user_roles". First table is user
information with a user_id. Second table is user_id and role_name. My
role_id column and 'roles' table are probably both superfluous now?

__PACKAGE__->belongs_to(user => 'MyAppDB::Users', 'user_id');

__PACKAGE__->has_many(map_user_roles => 'MyAppDB::UserRoles',
'user_id');

Is that _really_ all that's required?

Anyway, I -- perhaps prematurely asserted -- think I've figured this
out. 

Cheers,

-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to