Subject: | can't call search() on $resultset by itself anymore |
Why can't I do this anymore?
my $schema = $ec->schema('Stuff');
my $rs = $schema->resultset('Thang');
$rs->search({ name => 'foo' });
dies:
"->search is *not* a mutator, calling it in void context makes no sense"
I think this change might have broken existing code where this could be
useful.
sub searchit { return shift->search({ name => 'foo' }) }
my @wheresit =
map $_->all,
map searchit( $schema->resultset($_) ),
qw( Thang Thing Thingy )
;
I also used to be able to re-use the same resultset object to run search
again with new params, which reduced the amount of typing.
Mark