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

Matt S Trout dbix-class at trout.me.uk
Mon Jul 17 18:12:19 CEST 2006


Dylan Vanderhoof wrote:
> 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.

I believe that's now the canonical way.

Changes have been made with the intention of full backward compatibility; if 
it broke your code either you were misusing the API or there's a bug you 
failed to report.

Next time, report the bug at the time. Complaining after the fact and claiming 
it "appears to change on a regular basis" without details to help the 
maintainers resolve any problems is not constructive.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list