[Dbix-class] Re: One class, multiple tables: create on the fly

Oleg Kostyuk cub.uanic at gmail.com
Tue Oct 27 17:44:56 GMT 2009


Fixes for final code examples:

my $tbl1 = $c->req->params->{table};
my $all  = [ $c->model('TableFactory')->table($tbl1)->search(...)->all ];
my $tbl2 = $c->req->params->{table2};
my $cnt  = $c->model('TableFactory')->table($tbl2)->search(...)->count;

--
Sincerely yours,
Oleg Kostyuk (CUB-UANIC)



More information about the DBIx-Class mailing list