[Catalyst] Is users table primary key available in $c->user?

Dennis Daupert ddaupert at sbcglobal.net
Sat Jul 15 01:32:34 CEST 2006


Dennis Daupert <ddaupert at sbcglobal.net> wrote: I want to update my join table 'user_quotes' using the logged-in user's id. I found it!

my $user_id = $c->user->user->id;

Weird, since my users table is named 'users' and not user. But I can't argue with what works.

/dennis


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060714/a979b2f5/attachment.htm 


More information about the Catalyst mailing list