From e5456e82916482fa225dce4e01caf6b0058c50be Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 17 Apr 2020 16:05:43 +0100 Subject: [PATCH] Bug 24768: (RM follow-up) Add missing koha_object_class's Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- Koha/Schema/Result/CourseInstructor.pm | 7 ++++++- Koha/Schema/Result/CourseItem.pm | 8 +++++++- Koha/Schema/Result/CourseReserve.pm | 7 ++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Koha/Schema/Result/CourseInstructor.pm b/Koha/Schema/Result/CourseInstructor.pm index 1049475390..15ec47ee52 100644 --- a/Koha/Schema/Result/CourseInstructor.pm +++ b/Koha/Schema/Result/CourseInstructor.pm @@ -94,6 +94,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7vP3bJ0YA6LEepYOaNg++A +sub koha_objects_class { + 'Koha::Course::Instructors'; +} +sub koha_object_class { + 'Koha::Course::Instructor'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/CourseItem.pm b/Koha/Schema/Result/CourseItem.pm index 5df7ec6034..9e1e5ef826 100644 --- a/Koha/Schema/Result/CourseItem.pm +++ b/Koha/Schema/Result/CourseItem.pm @@ -188,5 +188,11 @@ __PACKAGE__->belongs_to( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0hBp2R7AMxgHLLZcG/676w -# You can replace this text with custom content, and it will be preserved on regeneration +sub koha_objects_class { + 'Koha::Course::Items'; +} +sub koha_object_class { + 'Koha::Course::Item'; +} + 1; diff --git a/Koha/Schema/Result/CourseReserve.pm b/Koha/Schema/Result/CourseReserve.pm index 080d699cba..8bb41cbb23 100644 --- a/Koha/Schema/Result/CourseReserve.pm +++ b/Koha/Schema/Result/CourseReserve.pm @@ -144,6 +144,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8SDdUrbxKuAwp6rgn85RmA +sub koha_objects_class { + 'Koha::Course::Reserves'; +} +sub koha_object_class { + 'Koha::Course::Reserve'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; -- 2.20.1