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

Dylan Vanderhoof DylanV at semaphore.com
Mon Jul 17 18:04:41 CEST 2006

This appears to change on a regular basis.  Does anybody know whether
$c->user->user or $c->user->obj is the correct way to access this
object?  Its changed over several upgrades and broken code in the
process.  The Auth version I have installed currently is $c->user->obj.

	-----Original Message-----
	From: Guillermo Roditi [mailto:groditi at gmail.com] 
	Sent: Friday, July 14, 2006 5:43 PM
	To: The elegant MVC web framework
	Subject: Re: [Catalyst] Is users table primary key available in
	this should also work...
	$user_row_obj = $c->user->obj
	On 7/14/06, Dennis Daupert < ddaupert at sbcglobal.net
<mailto: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. 

		List: Catalyst at lists.rawmode.org
		Searchable archive:
		Dev site: http://dev.catalyst.perl.org/

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

More information about the Catalyst mailing list