From c7b9aed6feaa5e261d50d46b9bd088d755173477 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 88ffe3c016..9e4bf7b04b 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 057c5fe7cb..98325efdd2 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