From 9176e2b42fba876ee045e53318d0a6f40235472d Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 13 Oct 2016 13:39:09 +0100
Subject: [PATCH] Bug 16965: Allow Koha::Objects->result_class

---
 Koha/Objects.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Koha/Objects.pm b/Koha/Objects.pm
index 73d3617..176821a 100644
--- a/Koha/Objects.pm
+++ b/Koha/Objects.pm
@@ -282,7 +282,7 @@ Currently count, pager, reset, update and delete are covered.
 sub AUTOLOAD {
     my ( $self, @params ) = @_;
 
-    my @known_methods = qw( count pager reset update delete );
+    my @known_methods = qw( count pager reset update delete result_class );
     my $method = our $AUTOLOAD;
     $method =~ s/.*:://;
 
-- 
2.8.1