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

Guillermo Roditi groditi at gmail.com
Sat Jul 15 02:43:14 CEST 2006


this should also work...
$c->user->obj->id

$user_row_obj = $c->user->obj

On 7/14/06, Dennis Daupert <ddaupert at sbcglobal.net> wrote:
>
>
> *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
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060714/05dd557d/attachment.htm 


More information about the Catalyst mailing list