[Catalyst] Can't locate
Catalyst/Plugin/Authentication/Store/DBIC.pm
Michael Higgins
linux at evolone.org
Tue Dec 18 07:04:25 GMT 2007
On Mon, 17 Dec 2007 21:03:52 -0800
Michael Higgins <linux at evolone.org> wrote:
> On Mon, 17 Dec 2007 20:09:23 -0800
> Michael Higgins <linux at evolone.org> wrote:
>
> > On Mon, 17 Dec 2007 20:47:20 -0700
> > Jay K <jayk at ion0.com> 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
More information about the Catalyst
mailing list