use Catalyst::Controller::DBIC::API::JoinBuilder;
-
=attribute_private search_validator
A Catalyst::Controller::DBIC::API::Validator instance used solely to validate search parameters
{
my ($self, $new) = @_;
- sub check_rel {
+ sub _check_rel {
my ($self, $rel, $static) = @_;
if(ArrayRef->check($rel))
{
foreach my $rel_sub (@$rel)
{
- $self->check_rel($rel_sub, $static);
+ $self->_check_rel($rel_sub, $static);
}
}
elsif(HashRef->check($rel))
foreach my $rel (@$new)
{
- $self->check_rel($rel, $p->static);
+ $self->_check_rel($rel, $p->static);
}
},
);
{
my ($self, $source, $param, $join, $base) = @_;
$base ||= 'me';
- my $search_params;
+ my $search_params = {};
# build up condition
foreach my $column (keys %$param)
next;
}
- %$search_params =
- %{
+ $search_params = { %$search_params, %{
$self->generate_column_parameters
(
$source->related_source($column),
Catalyst::Controller::DBIC::API::JoinBuilder->new(parent => $join, name => $column),
$column
)
- };
+ }};
}
else
{