Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: dbix::class relationship problem or TT object handling problem?

by jasonk (Parson)
on Sep 05, 2008 at 18:08 UTC ( #709357=note: print w/replies, xml ) Need Help??


in reply to dbix::class relationship problem or TT object handling problem?

You would get the same results from the tutorial if you called c.user.obj.roles instead of c.user.roles, the object returned by c.user is not a DBIx::Class object, it's a subclass of Catalyst::Authentication::User, in particular if you are using Catalyst::Authentication::Store::DBIx::Class then it's a Catalyst::Authentication::Store::DBIx::Class::User object, and calling ->roles on it returns an array of strings, not objects.


www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://709357]
help
Chatterbox?
[karlgoethebier]: marto: "Wat kümmert mich ming Jeschwätz von jestern?" (allegedly by a former german chancellor)
[marto]: My German is very limited and Google translate really isn't helping with that one :P

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-01-19 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?