From 17092c96432275b77e8297a9e388e8a76e2f28f7 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 24 Feb 2025 14:57:44 +0000 Subject: [PATCH] Bug 38924: Add koha_object_class to Schema files --- Koha/Schema/Result/PatronQuota.pm | 19 +++++++++++++++++++ Koha/Schema/Result/PatronQuotaUsage.pm | 13 +++++++++++++ 2 files changed, 32 insertions(+) diff --git a/Koha/Schema/Result/PatronQuota.pm b/Koha/Schema/Result/PatronQuota.pm index 42a7fb33a8..8c2512d118 100644 --- a/Koha/Schema/Result/PatronQuota.pm +++ b/Koha/Schema/Result/PatronQuota.pm @@ -145,6 +145,25 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-01-30 16:04:36 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KG/MIjPSLcpeSlPypwli2Q +=head3 koha_object_class + +Returns the package name for patron quota objects + +=cut + +sub koha_object_class { + return 'Koha::Patron::Quota'; +} # You can replace this text with custom code or comments, and it will be preserved on regeneration + +sub koha_object_class { + return 'Koha::Patron::Quota'; +} + +sub koha_objects_class { + return 'Koha::Patron::Quotas'; +} + + 1; diff --git a/Koha/Schema/Result/PatronQuotaUsage.pm b/Koha/Schema/Result/PatronQuotaUsage.pm index 6a58c51ceb..adfc213a65 100644 --- a/Koha/Schema/Result/PatronQuotaUsage.pm +++ b/Koha/Schema/Result/PatronQuotaUsage.pm @@ -116,5 +116,18 @@ __PACKAGE__->belongs_to( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KPS5VIQp3jVEgGNG8k4tZA +sub koha_object_class { + return 'Koha::Patron::Quota::Usage'; +} + # You can replace this text with custom code or comments, and it will be preserved on regeneration + +sub koha_object_class { + return 'Koha::Patron::Quota::Usage'; +} + +sub koha_objects_class { + return 'Koha::Patron::Quota::Usages'; +} + 1; -- 2.50.1