[Koha-bugs] [Bug 17091] Add AUTOLOAD to Koha::Objects
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 11 11:13:42 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17091
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #54272|0 |1
is obsolete| |
Attachment #54273|0 |1
is obsolete| |
Attachment #54274|0 |1
is obsolete| |
Attachment #54275|0 |1
is obsolete| |
Attachment #54276|0 |1
is obsolete| |
Attachment #54277|0 |1
is obsolete| |
Attachment #55378|0 |1
is obsolete| |
--- Comment #14 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 56142
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56142&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.
Signed-off-by: Hector Castro <hector.hecaxmmx at gmail.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list