[Koha-bugs] [Bug 17091] Add AUTOLOAD to Koha::Objects
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Aug 9 17:23:55 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17091
--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 54217
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54217&action=edit
Bug 17091: Add AUTOLOAD to Koha::Objects
Up to now if a Koha::Objects based object needs to call DBIx::Class methods, we
have to create a new method for Koha::Objects, something like:
sub method {
my $self = shift;
return $self->_resultset->method
}
To simplify and ease the call to DBIx::Class method, this patch defines an
AUTOLOAD to call the DBIx::Class method on the resultset we are encapsulating.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list