[Catalyst] The Definitive Guide to Catalyst ... p. 165 listing
all users and their roles
tja824 at gmail.com
Wed Jul 11 16:48:49 GMT 2012
<li>[% role.role.role %]</li> works because you're accessing the role name
(the third 'role') through the 'role' accessor (the second 'role') which is
defined in your many-to-many relationship:
__PACKAGE__->many_to_many("roles", "user_roles", *"role"*);
This is one of the beauties of DBIC; as soon as you have your relationships
defined, you have paths to the data you need. Imagine trying to write the
same type of request across a multiple key relationship.
On Wed, Jul 11, 2012 at 11:29 AM, Robyn Jonahs <learn.catalyst at gmail.com>wr=
> Thanks, that worked. Now I am off to see why.
> [ snip ]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst