[Dbix-class] Multiple joins, noob questions

Charlie Garrison garrison at zeta.org.au
Sat May 14 08:00:07 GMT 2011


Good afternoon,

On 14/05/11 at 1:40 PM +0600, shootnix at gmail.com wrote:

>My question is: how can I organize my schema-library to get user and
>his role with one step? To get $user->user_name & $user->role_name?

I think you're looking for many_to_many joins:

http://search.cpan.org/perldoc?DBIx::Class::Relationship#many_to_many


Charlie

-- 
   Ꮚ Charlie Garrison ♊ <garrison at zeta.org.au>
   
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt




More information about the DBIx-Class mailing list