anirudh_sml has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks need some information in catalyst
I am making a query like
my @data = $c->model("t1")->search( { "t2.num" => $a, "t3.name" => "xyz" }, { prefetch => [qw/t2 t3/], select => [qw/xyz rst/], #xyz feild is comman in t2 and t3 distinct => [qw/xyz rst/], order_by => [qw/rst/] } )->all;
prefetch fetched all the elements of t2 but I want some selected elements of t2 not all.
Please suggest ....
Thank You
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fetching selective elements of table through prefetch
by Anonymous Monk on Jun 24, 2011 at 17:27 UTC | |
by anirudh_sml (Novice) on Jun 25, 2011 at 01:33 UTC |