[Koha-bugs] [Bug 16965] Add the Koha::Objects->search_related method
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 25 08:50:18 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16965
--- Comment #4 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #3)
> (In reply to Marcel de Rooy from comment #2)
> > Shouldn't you wrap them like search does ?
>
> I don't think so:
> "In list context, ->all() is called implicitly on the resultset, thus
> returning a list of result objects instead."
> https://metacpan.org/pod/DBIx::Class::ResultSet#search_related
I mean the other search:
sub search {
my ( $self, $params, $attributes ) = @_;
if (wantarray) {
my @dbic_rows = $self->_resultset()->search($params, $attributes);
return $self->_wrap(@dbic_rows);
etc.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list