From 028fffab47bb477b8ee4a70ff6f957f81cc3f308 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Apr 2022 17:54:48 +0000 Subject: [PATCH] Bug 24857: Add object classes to Schema --- Koha/Schema/Result/ItemGroup.pm | 7 ++++++- Koha/Schema/Result/ItemGroupItem.pm | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/ItemGroup.pm b/Koha/Schema/Result/ItemGroup.pm index 88ffe3c016c..9e4bf7b04b7 100644 --- a/Koha/Schema/Result/ItemGroup.pm +++ b/Koha/Schema/Result/ItemGroup.pm @@ -151,6 +151,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 16:18:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YO7VdfzHDqBjGHt7vQX7gw +sub koha_objects_class { + 'Koha::Biblio::ItemGroups'; +} +sub koha_object_class { + 'Koha::Biblio::ItemGroup'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ItemGroupItem.pm b/Koha/Schema/Result/ItemGroupItem.pm index 057c5fe7cbc..98325efdd26 100644 --- a/Koha/Schema/Result/ItemGroupItem.pm +++ b/Koha/Schema/Result/ItemGroupItem.pm @@ -132,6 +132,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 16:18:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FLtrDLTHqXdzqyOmVvaXJQ +sub koha_object_class { + 'Koha::Biblio::ItemGroup::Item'; +} +sub koha_objects_class { + 'Koha::Biblio::ItemGroup::Items'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.30.2