in reply to Problems with DBIx::Class and SQL JOIN's
$c->model('DB::Users')->search( { 'role.role' => 'friend' }, { join => { 'map_user_role' => 'role' }, '+select' => [ 'role.id', 'role.role' ], '+as' => [ 'roleid', 'role' ], rows => 10, }, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problems with DBIx::Class and SQL JOIN's
by Tommy (Chaplain) on Jun 08, 2009 at 22:43 UTC | |
by Arunbear (Prior) on Jun 09, 2009 at 16:38 UTC |