Re: [Catalyst] database access through controller in Catalyst

2007-05-09 Thread Matt S Trout
On Wed, May 09, 2007 at 11:41:32PM +1000, Gaurav Talwar wrote: > Hello all, > > i have been trying hard to form a query through my controller to extract > records. example: > > my $loan_list = $c->model('MyAppDB::TblLoan') ->search >( > {userid => $userid}, > { >

[Catalyst] database access through controller in Catalyst

2007-05-09 Thread Gaurav Talwar
Hello all, i have been trying hard to form a query through my controller to extract records. example: my $loan_list = $c->model('MyAppDB::TblLoan') ->search ( {userid => $userid}, { select => [ 'userid', 'loanid', { max => 'price' } ], group_by =>