[Dbix-class] Providing extra limitations to query
Dmitry Belyavsky
beldmit at gmail.com
Tue Jan 10 13:03:34 GMT 2012
Greetings!
I have a function similar to
my $account_id = shift;
my $query_params = shift;
my $rs = $schema->result("Table")->search($query_params);
I want to provide account-related access restrictions implicitly so I
need to modify the $query_params variable. There are no problems when
the $query_params is a hash reference, the code looks like
my $params = {-and => [$query_params, {restrictions} ]}
my $rs = $schema->result("Table")->search($query_params);
How can I do it in case of the array ref passed as original params?
Thank you!
--
SY, Dmitry Belyavsky
More information about the DBIx-Class
mailing list