From 96ea0648cbb3b4fb2f85cd911f8b92486c81a863 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 May 2022 13:59:00 +0200 Subject: [PATCH] Bug 32030: DBIC Specific Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/ErmAgreement.pm | 11 ++++++++++- Koha/Schema/Result/ErmAgreementLicense.pm | 7 ++++++- Koha/Schema/Result/ErmAgreementPeriod.pm | 7 ++++++- Koha/Schema/Result/ErmAgreementRelationship.pm | 7 ++++++- Koha/Schema/Result/ErmDocument.pm | 7 ++++++- Koha/Schema/Result/ErmEholdingsPackage.pm | 7 ++++++- Koha/Schema/Result/ErmEholdingsPackagesAgreement.pm | 7 ++++++- Koha/Schema/Result/ErmEholdingsResource.pm | 7 ++++++- Koha/Schema/Result/ErmEholdingsTitle.pm | 7 ++++++- Koha/Schema/Result/ErmLicense.pm | 7 ++++++- Koha/Schema/Result/ErmUserRole.pm | 7 ++++++- 11 files changed, 70 insertions(+), 11 deletions(-) diff --git a/Koha/Schema/Result/ErmAgreement.pm b/Koha/Schema/Result/ErmAgreement.pm index c7b9bf471f..18fc028b9b 100644 --- a/Koha/Schema/Result/ErmAgreement.pm +++ b/Koha/Schema/Result/ErmAgreement.pm @@ -260,6 +260,15 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-01 07:44:13 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rdLbabpHCgb4l88Gmgst+g +__PACKAGE__->add_columns( + '+is_perpetual' => { is_boolean => 1 } +); + +sub koha_object_class { + 'Koha::ERM::Agreement'; +} +sub koha_objects_class { + 'Koha::ERM::Agreements'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmAgreementLicense.pm b/Koha/Schema/Result/ErmAgreementLicense.pm index 79025b7c66..6a8f23fea1 100644 --- a/Koha/Schema/Result/ErmAgreementLicense.pm +++ b/Koha/Schema/Result/ErmAgreementLicense.pm @@ -161,6 +161,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-20 08:58:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pO0QPWFMSap1XER+0hdEqg +sub koha_object_class { + 'Koha::ERM::Agreement::License'; +} +sub koha_objects_class { + 'Koha::ERM::Agreement::Licenses'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmAgreementPeriod.pm b/Koha/Schema/Result/ErmAgreementPeriod.pm index 00b128a147..eb8b827311 100644 --- a/Koha/Schema/Result/ErmAgreementPeriod.pm +++ b/Koha/Schema/Result/ErmAgreementPeriod.pm @@ -120,6 +120,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-25 11:46:59 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NCQpSw+rp/9B/yOrtLtK6g +sub koha_object_class { + 'Koha::ERM::Agreement::Period'; +} +sub koha_objects_class { + 'Koha::ERM::Agreement::Periods'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmAgreementRelationship.pm b/Koha/Schema/Result/ErmAgreementRelationship.pm index 43e17979d8..266a8fd2b8 100644 --- a/Koha/Schema/Result/ErmAgreementRelationship.pm +++ b/Koha/Schema/Result/ErmAgreementRelationship.pm @@ -133,6 +133,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-25 11:46:59 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EYK21+2xV7p1yCXR8OFKIA +sub koha_object_class { + 'Koha::ERM::Agreement::Relationship'; +} +sub koha_objects_class { + 'Koha::ERM::Agreement::Relationships'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmDocument.pm b/Koha/Schema/Result/ErmDocument.pm index c0bc028de6..e39705444f 100644 --- a/Koha/Schema/Result/ErmDocument.pm +++ b/Koha/Schema/Result/ErmDocument.pm @@ -198,6 +198,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-21 09:22:27 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rbU2G4zjKlEcOtuwVBSXaw +sub koha_object_class { + 'Koha::ERM::Document'; +} +sub koha_objects_class { + 'Koha::ERM::Documents'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmEholdingsPackage.pm b/Koha/Schema/Result/ErmEholdingsPackage.pm index 611547a941..9221fee3c9 100644 --- a/Koha/Schema/Result/ErmEholdingsPackage.pm +++ b/Koha/Schema/Result/ErmEholdingsPackage.pm @@ -191,6 +191,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-19 09:25:48 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KbZxONSm/pxXvUFi3PuZiQ +sub koha_object_class { + 'Koha::ERM::EHoldings::Package'; +} +sub koha_objects_class { + 'Koha::ERM::EHoldings::Packages'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmEholdingsPackagesAgreement.pm b/Koha/Schema/Result/ErmEholdingsPackagesAgreement.pm index f739d3b402..e8f15b8496 100644 --- a/Koha/Schema/Result/ErmEholdingsPackagesAgreement.pm +++ b/Koha/Schema/Result/ErmEholdingsPackagesAgreement.pm @@ -103,6 +103,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-20 08:58:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OfIIIupuz76wN2HDac5fng +sub koha_object_class { + 'Koha::ERM::Package::Agreement'; +} +sub koha_objects_class { + 'Koha::ERM::Package::Agreements'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmEholdingsResource.pm b/Koha/Schema/Result/ErmEholdingsResource.pm index f81316636a..685330d31d 100644 --- a/Koha/Schema/Result/ErmEholdingsResource.pm +++ b/Koha/Schema/Result/ErmEholdingsResource.pm @@ -170,6 +170,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-20 08:58:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FQbMPJvUGn+kxlA+C4JvYg +sub koha_objects_class { + 'Koha::ERM::EHoldings::Resources'; +} +sub koha_object_class { + 'Koha::ERM::EHoldings::Resource'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmEholdingsTitle.pm b/Koha/Schema/Result/ErmEholdingsTitle.pm index afe1107651..2ebfbf48ec 100644 --- a/Koha/Schema/Result/ErmEholdingsTitle.pm +++ b/Koha/Schema/Result/ErmEholdingsTitle.pm @@ -299,6 +299,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-22 11:41:06 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+DZRDExmVLe+MBtk+TEhJw +sub koha_objects_class { + 'Koha::ERM::EHoldings::Titles'; +} +sub koha_object_class { + 'Koha::ERM::EHoldings::Title'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmLicense.pm b/Koha/Schema/Result/ErmLicense.pm index 7f375348cf..17402c0003 100644 --- a/Koha/Schema/Result/ErmLicense.pm +++ b/Koha/Schema/Result/ErmLicense.pm @@ -190,6 +190,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-01 07:44:13 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fs4bmI/N6Cvicv3RW2qwXQ +sub koha_object_class { + 'Koha::ERM::License'; +} +sub koha_objects_class { + 'Koha::ERM::Licenses'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ErmUserRole.pm b/Koha/Schema/Result/ErmUserRole.pm index 07e5094433..d57f58b5fc 100644 --- a/Koha/Schema/Result/ErmUserRole.pm +++ b/Koha/Schema/Result/ErmUserRole.pm @@ -129,6 +129,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-01 07:44:13 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RkK5cQWFEmcrDioAfjOVWQ +sub koha_object_class { + 'Koha::ERM::Agreement::UserRole'; +} +sub koha_objects_class { + 'Koha::ERM::Agreement::UserRoles'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.39.5