my $objects = $c->model('DB')->resultset('Todo')->search($myFilter,{
prefetch => @relations # contains all possible relations
});
DBIx::Class::ResultSet::next(): Prefetching multiple has_many rels accountbalances_todos and accounts_todos at top level will explode the number of row objects retrievable via ->next or ->all. Use at your own risk. at /media/psf/projects/.../Controller/Todo.pm line 117
$SIG{__WARN__} = sub {
my $warn_msg = $_[0];
if ( $warn_msg =~ m/Prefetching multiple has_many rels accountbalances_todos/ ) {
# do nothing
} else {
warn $warn_msg;
}
};
$SIG{__WARN__} = sub {
warn $_[0] unless $_[0] =~ m/Prefetching multiple has_many rels accountbalances_todos/
};