From 4b290b9833293d4e56e2e4597e9645e331bc1ee1 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 --- 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 3b951fc3e1..4f78d24cdb 100644 --- a/Koha/Schema/Result/CourseItem.pm +++ b/Koha/Schema/Result/CourseItem.pm @@ -258,5 +258,11 @@ __PACKAGE__->add_columns( '+location_enabled' => { is_boolean => 1 }, ); -# 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.39.5