From 921898dbf3fdd8c5de7c6f586da0583027403bb4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Jun 2019 21:42:07 -0500 Subject: [PATCH] Bug 23152: Implement koha_object[s]_class when needed A simple use case is the ->get_from_storage (useful when writing tests) Test plan: Apply only the first patch and notice the test failures Apply the second patch and confirm the the tests are returning green Signed-off-by: Martin Renvoize --- Koha/Schema/Result/AccountOffset.pm | 7 ++++++- Koha/Schema/Result/Aqbasket.pm | 8 +++++++- Koha/Schema/Result/Aqbasketgroup.pm | 8 +++++++- Koha/Schema/Result/Aqbookseller.pm | 7 ++++++- Koha/Schema/Result/Aqbudget.pm | 8 +++++++- Koha/Schema/Result/Aqbudgetperiod.pm | 7 ++++++- Koha/Schema/Result/Aqcontact.pm | 7 ++++++- Koha/Schema/Result/Aqinvoice.pm | 7 ++++++- Koha/Schema/Result/AqinvoiceAdjustment.pm | 7 ++++++- Koha/Schema/Result/AuthHeader.pm | 7 ++++++- Koha/Schema/Result/AuthSubfieldStructure.pm | 7 ++++++- Koha/Schema/Result/AuthTagStructure.pm | 7 ++++++- Koha/Schema/Result/AuthType.pm | 7 ++++++- Koha/Schema/Result/BiblioMetadata.pm | 4 +++- Koha/Schema/Result/BorrowerAttribute.pm | 7 ++++++- Koha/Schema/Result/BorrowerAttributeType.pm | 7 ++++++- Koha/Schema/Result/BorrowerModification.pm | 7 ++++++- Koha/Schema/Result/Branch.pm | 5 ++++- Koha/Schema/Result/BranchTransferLimit.pm | 7 ++++++- Koha/Schema/Result/BranchesOverdrive.pm | 7 ++++++- Koha/Schema/Result/Branchtransfer.pm | 7 ++++++- Koha/Schema/Result/Category.pm | 7 ++++++- Koha/Schema/Result/ClubEnrollment.pm | 7 ++++++- Koha/Schema/Result/ClubEnrollmentField.pm | 7 ++++++- Koha/Schema/Result/ClubField.pm | 7 ++++++- Koha/Schema/Result/ClubTemplate.pm | 7 +++++++ Koha/Schema/Result/ClubTemplateEnrollmentField.pm | 7 ++++++- Koha/Schema/Result/ClubTemplateField.pm | 7 ++++++- Koha/Schema/Result/Currency.pm | 8 +++++++- Koha/Schema/Result/ExportFormat.pm | 7 ++++++- Koha/Schema/Result/Fieldmapping.pm | 7 ++++++- Koha/Schema/Result/HouseboundProfile.pm | 7 ++++++- Koha/Schema/Result/HouseboundRole.pm | 7 ++++++- Koha/Schema/Result/HouseboundVisit.pm | 7 ++++++- Koha/Schema/Result/Issue.pm | 7 +++++++ Koha/Schema/Result/Issuingrule.pm | 7 ++++++- Koha/Schema/Result/Itemtype.pm | 7 +++++++ Koha/Schema/Result/Letter.pm | 7 ++++++- Koha/Schema/Result/LibraryGroup.pm | 7 ++++++- Koha/Schema/Result/Message.pm | 7 ++++++- Koha/Schema/Result/MessageQueue.pm | 7 ++++++- Koha/Schema/Result/NeedMergeAuthority.pm | 7 ++++++- Koha/Schema/Result/OauthAccessToken.pm | 7 ++++++- Koha/Schema/Result/OldIssue.pm | 3 +++ Koha/Schema/Result/OldReserve.pm | 7 ++++++- Koha/Schema/Result/OpacNews.pm | 7 ++++++- Koha/Schema/Result/PatronConsent.pm | 7 ++++++- Koha/Schema/Result/Patronimage.pm | 7 ++++++- Koha/Schema/Result/Reserve.pm | 7 +++++++ Koha/Schema/Result/SavedSql.pm | 7 ++++++- Koha/Schema/Result/Serialitem.pm | 7 ++++++- Koha/Schema/Result/SmsProvider.pm | 7 ++++++- Koha/Schema/Result/Stockrotationitem.pm | 8 +++++++- Koha/Schema/Result/Stockrotationrota.pm | 8 +++++++- Koha/Schema/Result/Stockrotationstage.pm | 7 +++++++ Koha/Schema/Result/SubscriptionFrequency.pm | 7 ++++++- Koha/Schema/Result/SubscriptionNumberpattern.pm | 7 ++++++- Koha/Schema/Result/Subscriptionhistory.pm | 7 ++++++- Koha/Schema/Result/Subscriptionroutinglist.pm | 7 ++++++- Koha/Schema/Result/Systempreference.pm | 7 ++++++- Koha/Schema/Result/TagAll.pm | 7 ++++++- Koha/Schema/Result/TagsApproval.pm | 7 ++++++- Koha/Schema/Result/TagsIndex.pm | 7 ++++++- Koha/Schema/Result/Virtualshelve.pm | 7 ++++++- Koha/Schema/Result/Z3950server.pm | 7 ++++++- 65 files changed, 393 insertions(+), 59 deletions(-) diff --git a/Koha/Schema/Result/AccountOffset.pm b/Koha/Schema/Result/AccountOffset.pm index 892c095dd3..02751ae83a 100644 --- a/Koha/Schema/Result/AccountOffset.pm +++ b/Koha/Schema/Result/AccountOffset.pm @@ -156,6 +156,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-20 16:27:04 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tPPrIug2c7PbDO7LCxCJAA +sub koha_object_class { + 'Koha::Account::Offset'; +} +sub koha_objects_class { + 'Koha::Account::Offsets'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Aqbasket.pm b/Koha/Schema/Result/Aqbasket.pm index 90e8043773..220d91eeef 100644 --- a/Koha/Schema/Result/Aqbasket.pm +++ b/Koha/Schema/Result/Aqbasket.pm @@ -328,5 +328,11 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -# You can replace this text with custom code or comments, and it will be preserved on regeneration +sub koha_object_class { + 'Koha::Acquisition::Basket'; +} +sub koha_objects_class { + 'Koha::Acquisition::Baskets'; +} + 1; diff --git a/Koha/Schema/Result/Aqbasketgroup.pm b/Koha/Schema/Result/Aqbasketgroup.pm index 618ebd9632..da3a3997c2 100644 --- a/Koha/Schema/Result/Aqbasketgroup.pm +++ b/Koha/Schema/Result/Aqbasketgroup.pm @@ -139,5 +139,11 @@ __PACKAGE__->belongs_to( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9cEWAMwcFKPYPEG1CaaD3w -# You can replace this text with custom content, and it will be preserved on regeneration +sub koha_object_class { + 'Koha::Acquisition::BasketGroup'; +} +sub koha_objects_class { + 'Koha::Acquisition::BasketGroups'; +} + 1; diff --git a/Koha/Schema/Result/Aqbookseller.pm b/Koha/Schema/Result/Aqbookseller.pm index 159ade6599..f0b79fa33a 100644 --- a/Koha/Schema/Result/Aqbookseller.pm +++ b/Koha/Schema/Result/Aqbookseller.pm @@ -392,6 +392,11 @@ __PACKAGE__->add_columns( '+invoiceincgst' => { is_boolean => 1 }, ); +sub koha_object_class { + 'Koha::Acquisition::Bookseller'; +} +sub koha_objects_class { + 'Koha::Acquisition::Booksellers'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Aqbudget.pm b/Koha/Schema/Result/Aqbudget.pm index 1cdb64c31d..f8f05f49c1 100644 --- a/Koha/Schema/Result/Aqbudget.pm +++ b/Koha/Schema/Result/Aqbudget.pm @@ -302,5 +302,11 @@ __PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumbe # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zB7ox8a4KdDGq5fsbQfLGQ -# You can replace this text with custom content, and it will be preserved on regeneration +sub koha_object_class { + 'Koha::Acquisition::Fund'; +} +sub koha_objects_class { + 'Koha::Acquisition::Funds'; +} + 1; diff --git a/Koha/Schema/Result/Aqbudgetperiod.pm b/Koha/Schema/Result/Aqbudgetperiod.pm index 1d76ec00d9..06c1492824 100644 --- a/Koha/Schema/Result/Aqbudgetperiod.pm +++ b/Koha/Schema/Result/Aqbudgetperiod.pm @@ -114,6 +114,11 @@ __PACKAGE__->set_primary_key("budget_period_id"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M13qdhmXgKilais2IFkXFw +sub koha_object_class { + 'Koha::Acquisition::Budget'; +} +sub koha_objects_class { + 'Koha::Acquisition::Budgets'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Aqcontact.pm b/Koha/Schema/Result/Aqcontact.pm index b02bcbaa35..b9dc1cb65a 100644 --- a/Koha/Schema/Result/Aqcontact.pm +++ b/Koha/Schema/Result/Aqcontact.pm @@ -172,6 +172,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:R2x8Z9Db2oDULEODgLuw8Q +sub koha_object_class { + 'Koha::Acquisition::Bookseller::Contact'; +} +sub koha_objects_class { + 'Koha::Acquisition::Bookseller::Contacts'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Aqinvoice.pm b/Koha/Schema/Result/Aqinvoice.pm index b760947123..fe1f8f265e 100644 --- a/Koha/Schema/Result/Aqinvoice.pm +++ b/Koha/Schema/Result/Aqinvoice.pm @@ -202,6 +202,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-16 13:50:45 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mpdxTbkz/8WInG5Wp4q7Ug +sub koha_object_class { + 'Koha::Acquisition::Invoice'; +} +sub koha_objects_class { + 'Koha::Acquisition::Invoices'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AqinvoiceAdjustment.pm b/Koha/Schema/Result/AqinvoiceAdjustment.pm index cbdbb2ef10..16bc45acb2 100644 --- a/Koha/Schema/Result/AqinvoiceAdjustment.pm +++ b/Koha/Schema/Result/AqinvoiceAdjustment.pm @@ -150,6 +150,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-19 17:32:57 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jl0qxkZWVs2D1pi3kaRjpg +sub koha_object_class { + 'Koha::Acquisition::Invoice::Adjustment'; +} +sub koha_objects_class { + 'Koha::Acquisition::Invoice::Adjustments'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AuthHeader.pm b/Koha/Schema/Result/AuthHeader.pm index 56afb9bb80..3b74969d76 100644 --- a/Koha/Schema/Result/AuthHeader.pm +++ b/Koha/Schema/Result/AuthHeader.pm @@ -125,6 +125,11 @@ __PACKAGE__->set_primary_key("authid"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kHEdfMFYFtn3sQ20qsdFyg +sub koha_object_class { + 'Koha::Authority'; +} +sub koha_objects_class { + 'Koha::Authoritys'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AuthSubfieldStructure.pm b/Koha/Schema/Result/AuthSubfieldStructure.pm index 06bc0c9db2..7bf460d832 100644 --- a/Koha/Schema/Result/AuthSubfieldStructure.pm +++ b/Koha/Schema/Result/AuthSubfieldStructure.pm @@ -212,6 +212,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:5Prv/DCQk32mTQaqtYhUuA +sub koha_object_class { + 'Koha::Authority::Subfield'; +} +sub koha_objects_class { + 'Koha::Authority::Subfields'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AuthTagStructure.pm b/Koha/Schema/Result/AuthTagStructure.pm index 4612b32f9a..3bc92350ac 100644 --- a/Koha/Schema/Result/AuthTagStructure.pm +++ b/Koha/Schema/Result/AuthTagStructure.pm @@ -130,6 +130,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ulaQnDuxrwYgCKJ/Qygaw +sub koha_object_class { + 'Koha::Authority::Tag'; +} +sub koha_objects_class { + 'Koha::Authority::Tags'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/AuthType.pm b/Koha/Schema/Result/AuthType.pm index f15a6056bc..ce57ceb5ee 100644 --- a/Koha/Schema/Result/AuthType.pm +++ b/Koha/Schema/Result/AuthType.pm @@ -110,6 +110,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:USULz4Y8i0JC73GxcxJ+BA +sub koha_object_class { + 'Koha::Authority::Type'; +} +sub koha_objects_class { + 'Koha::Authority::Types'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/BiblioMetadata.pm b/Koha/Schema/Result/BiblioMetadata.pm index 52fd862949..69de376066 100644 --- a/Koha/Schema/Result/BiblioMetadata.pm +++ b/Koha/Schema/Result/BiblioMetadata.pm @@ -135,6 +135,8 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-30 11:34:16 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FJk/YOw8Y/QRmmPPL3G5qQ +sub koha_object_class { + 'Koha::Biblio::Metadatas'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/BorrowerAttribute.pm b/Koha/Schema/Result/BorrowerAttribute.pm index 45ce0bfbbc..2dc8268c15 100644 --- a/Koha/Schema/Result/BorrowerAttribute.pm +++ b/Koha/Schema/Result/BorrowerAttribute.pm @@ -109,6 +109,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-08 04:41:27 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EarETnedFsmRmAAJAUrKGg +sub koha_object_class { + 'Koha::Patron::Attribute'; +} +sub koha_objects_class { + 'Koha::Patron::Attributes'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm index 7c4b7794d4..46a86f07bc 100644 --- a/Koha/Schema/Result/BorrowerAttributeType.pm +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -165,6 +165,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-25 20:32:12 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gsPR8PuUUZHFUkr3MIbTpw +sub koha_object_class { + 'Koha::Patron::Attribute::Type'; +} +sub koha_objects_class { + 'Koha::Patron::Attribute::Types'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/BorrowerModification.pm b/Koha/Schema/Result/BorrowerModification.pm index c91c58e712..1fce1d516a 100644 --- a/Koha/Schema/Result/BorrowerModification.pm +++ b/Koha/Schema/Result/BorrowerModification.pm @@ -613,6 +613,11 @@ __PACKAGE__->set_primary_key("verification_token", "borrowernumber"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-20 13:00:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qQ0BWngri+79YvK9S8zZPg +sub koha_object_class { + 'Koha::Patron::Modification'; +} +sub koha_objects_class { + 'Koha::Patron::Modifications'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 40d54c0f09..4e645d4d53 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -684,8 +684,11 @@ __PACKAGE__->add_columns( '+pickup_location' => { is_boolean => 1 } ); +sub koha_object_class { + 'Koha::Library'; +} sub koha_objects_class { - 'Koha::Libraries'; + 'Koha::Librarys'; } 1; diff --git a/Koha/Schema/Result/BranchTransferLimit.pm b/Koha/Schema/Result/BranchTransferLimit.pm index 7f5bdb4c9a..92ad181fba 100644 --- a/Koha/Schema/Result/BranchTransferLimit.pm +++ b/Koha/Schema/Result/BranchTransferLimit.pm @@ -102,6 +102,11 @@ __PACKAGE__->set_primary_key("limitId"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-26 16:15:09 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wKere4dleMGrs9RO59qx9Q +sub koha_object_class { + 'Koha::Item::Transfer::Limit'; +} +sub koha_objects_class { + 'Koha::Item::Transfer::Limits'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/BranchesOverdrive.pm b/Koha/Schema/Result/BranchesOverdrive.pm index fd14503782..6a430415b9 100644 --- a/Koha/Schema/Result/BranchesOverdrive.pm +++ b/Koha/Schema/Result/BranchesOverdrive.pm @@ -78,6 +78,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 10:38:33 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEZWWtF4MRDwupI/27laDw +sub koha_object_class { + 'Koha::Library::OverDriveInfo'; +} +sub koha_objects_class { + 'Koha::Library::OverDriveInfos'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 7410108d98..0e852e6e02 100644 --- a/Koha/Schema/Result/Branchtransfer.pm +++ b/Koha/Schema/Result/Branchtransfer.pm @@ -176,6 +176,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:uPQzv0lMxfnu75SzS6UpVQ +sub koha_object_class { + 'Koha::Item::Transfer'; +} +sub koha_objects_class { + 'Koha::Item::Transfers'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index b32b96759a..e00c54dbc1 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -269,6 +269,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-12 02:43:58 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7rwTH9HuxcdRCBP/bj0d/A +sub koha_object_class { + 'Koha::Patron::Category'; +} +sub koha_objects_class { + 'Koha::Patron::Categorys'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ClubEnrollment.pm b/Koha/Schema/Result/ClubEnrollment.pm index e970f05829..f428a5da6f 100644 --- a/Koha/Schema/Result/ClubEnrollment.pm +++ b/Koha/Schema/Result/ClubEnrollment.pm @@ -194,6 +194,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-12 17:59:47 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ih/HQM4KIRDZ0ESXVR9FwA +sub koha_object_class { + 'Koha::Club::Enrollment'; +} +sub koha_objects_class { + 'Koha::Club::Enrollments'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ClubEnrollmentField.pm b/Koha/Schema/Result/ClubEnrollmentField.pm index e86f543e9e..9067bcb8b2 100644 --- a/Koha/Schema/Result/ClubEnrollmentField.pm +++ b/Koha/Schema/Result/ClubEnrollmentField.pm @@ -107,6 +107,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:tr8INu1+veRdWkRT4BgBOQ +sub koha_object_class { + 'Koha::Club::Enrollment::Field'; +} +sub koha_objects_class { + 'Koha::Club::Enrollment::Fields'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ClubField.pm b/Koha/Schema/Result/ClubField.pm index c3f8ada6c4..e430702f63 100644 --- a/Koha/Schema/Result/ClubField.pm +++ b/Koha/Schema/Result/ClubField.pm @@ -107,6 +107,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:2ySSLrl8GXRXJ38AWg6kng +sub koha_object_class { + 'Koha::Club::Field'; +} +sub koha_objects_class { + 'Koha::Club::Fields'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ClubTemplate.pm b/Koha/Schema/Result/ClubTemplate.pm index 197e8ded12..bbc5f49a5f 100644 --- a/Koha/Schema/Result/ClubTemplate.pm +++ b/Koha/Schema/Result/ClubTemplate.pm @@ -192,4 +192,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1UuejI9kkTb9eeNKvSLAQQ +sub koha_object_class { + 'Koha::Club::Template'; +} +sub koha_objects_class { + 'Koha::Club::Templates'; +} + 1; diff --git a/Koha/Schema/Result/ClubTemplateEnrollmentField.pm b/Koha/Schema/Result/ClubTemplateEnrollmentField.pm index c45720ac1f..2a225ccd41 100644 --- a/Koha/Schema/Result/ClubTemplateEnrollmentField.pm +++ b/Koha/Schema/Result/ClubTemplateEnrollmentField.pm @@ -114,6 +114,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:lN5Shnqo+va0tCdiM/iwNg +sub koha_object_class { + 'Koha::Club::Template::EnrollmentField'; +} +sub koha_objects_class { + 'Koha::Club::Template::EnrollmentFields'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/ClubTemplateField.pm b/Koha/Schema/Result/ClubTemplateField.pm index 9629e1741c..c0cd92e1b7 100644 --- a/Koha/Schema/Result/ClubTemplateField.pm +++ b/Koha/Schema/Result/ClubTemplateField.pm @@ -114,6 +114,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:LRnLRjyMHuEd3KMRMHd3KA +sub koha_object_class { + 'Koha::Club::Template::Field'; +} +sub koha_objects_class { + 'Koha::Club::Template::Fields'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm index 3f4d36ce0f..720fa5ac59 100644 --- a/Koha/Schema/Result/Currency.pm +++ b/Koha/Schema/Result/Currency.pm @@ -162,5 +162,11 @@ __PACKAGE__->has_many( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnJEcCgrM1Edf99phWFdyQ -# You can replace this text with custom content, and it will be preserved on regeneration +sub koha_object_class { + 'Koha::Acquisition::Currency'; +} +sub koha_objects_class { + 'Koha::Acquisition::Currencies'; +} + 1; diff --git a/Koha/Schema/Result/ExportFormat.pm b/Koha/Schema/Result/ExportFormat.pm index 819451a83b..28516cd61a 100644 --- a/Koha/Schema/Result/ExportFormat.pm +++ b/Koha/Schema/Result/ExportFormat.pm @@ -141,6 +141,11 @@ __PACKAGE__->set_primary_key("export_format_id"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YSQshI3mJfO0LsOlwvdIdg +sub koha_object_class { + 'Koha::CsvProfile'; +} +sub koha_objects_class { + 'Koha::CsvProfiles'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Fieldmapping.pm b/Koha/Schema/Result/Fieldmapping.pm index d0b8730b3b..f8e8845c0a 100644 --- a/Koha/Schema/Result/Fieldmapping.pm +++ b/Koha/Schema/Result/Fieldmapping.pm @@ -85,6 +85,11 @@ __PACKAGE__->set_primary_key("id"); # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x+izN6nqxs+W/g/demOpOg +sub koha_object_class { + 'Koha::FieldMapping'; +} +sub koha_objects_class { + 'Koha::FieldMappings'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/HouseboundProfile.pm b/Koha/Schema/Result/HouseboundProfile.pm index 2c50c9a202..0406e9f7a2 100644 --- a/Koha/Schema/Result/HouseboundProfile.pm +++ b/Koha/Schema/Result/HouseboundProfile.pm @@ -133,6 +133,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ESpGqu3oX9qad3elnDvOiw +sub koha_object_class { + 'Koha::Patron::HouseboundProfile'; +} +sub koha_objects_class { + 'Koha::Patron::HouseboundProfiles'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/HouseboundRole.pm b/Koha/Schema/Result/HouseboundRole.pm index c5fbca120e..7c1489ed33 100644 --- a/Koha/Schema/Result/HouseboundRole.pm +++ b/Koha/Schema/Result/HouseboundRole.pm @@ -85,6 +85,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-21 18:20:25 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SU7khVgiUf1OVvaFpKaFPA +sub koha_object_class { + 'Koha::Patron::HouseboundRole'; +} +sub koha_objects_class { + 'Koha::Patron::HouseboundRoles'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/HouseboundVisit.pm b/Koha/Schema/Result/HouseboundVisit.pm index ae8c5d67db..4f3b402bc4 100644 --- a/Koha/Schema/Result/HouseboundVisit.pm +++ b/Koha/Schema/Result/HouseboundVisit.pm @@ -149,6 +149,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 13:21:23 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5zyc7l2BtF5cgpZeKbJNZg +sub koha_object_class { + 'Koha::Patron::HouseboundVisit'; +} +sub koha_objects_class { + 'Koha::Patron::HouseboundVisits'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index d464fbfcf3..566f87b364 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -288,4 +288,11 @@ __PACKAGE__->belongs_to( }, ); +sub koha_object_class { + 'Koha::Checkout'; +} +sub koha_objects_class { + 'Koha::Checkouts'; +} + 1; diff --git a/Koha/Schema/Result/Issuingrule.pm b/Koha/Schema/Result/Issuingrule.pm index 6b50beb54c..ecc549e5a8 100644 --- a/Koha/Schema/Result/Issuingrule.pm +++ b/Koha/Schema/Result/Issuingrule.pm @@ -317,6 +317,11 @@ __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype"); # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-05 20:49:11 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6bPX0BRWWQZrWFun3GP86Q +sub koha_object_class { + 'Koha::IssuingRule'; +} +sub koha_objects_class { + 'Koha::IssuingRules'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Itemtype.pm b/Koha/Schema/Result/Itemtype.pm index 55331fe32a..37be85087c 100644 --- a/Koha/Schema/Result/Itemtype.pm +++ b/Koha/Schema/Result/Itemtype.pm @@ -262,4 +262,11 @@ __PACKAGE__->has_many( } ); +sub koha_object_class { + 'Koha::ItemType'; +} +sub koha_objects_class { + 'Koha::ItemTypes'; +} + 1; diff --git a/Koha/Schema/Result/Letter.pm b/Koha/Schema/Result/Letter.pm index 152cea19c6..92045a0f36 100644 --- a/Koha/Schema/Result/Letter.pm +++ b/Koha/Schema/Result/Letter.pm @@ -159,6 +159,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fOuu1Fj8Uo3114QKS2qLkQ +sub koha_object_class { + 'Koha::Notice::Template'; +} +sub koha_objects_class { + 'Koha::Notice::Templates'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/LibraryGroup.pm b/Koha/Schema/Result/LibraryGroup.pm index 306075b355..524a4698d4 100644 --- a/Koha/Schema/Result/LibraryGroup.pm +++ b/Koha/Schema/Result/LibraryGroup.pm @@ -205,6 +205,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8hvTh2lWoG/MpfSdq4kx5Q +sub koha_object_class { + 'Koha::Library::Group'; +} +sub koha_objects_class { + 'Koha::Library::Groups'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Message.pm b/Koha/Schema/Result/Message.pm index 2c24dec1bb..4f4237ed6b 100644 --- a/Koha/Schema/Result/Message.pm +++ b/Koha/Schema/Result/Message.pm @@ -142,6 +142,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-02-15 13:15:09 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kYM+0CFPm/wdNp7EosdlRw +sub koha_object_class { + 'Koha::Patron::Message'; +} +sub koha_objects_class { + 'Koha::Patron::Messages'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/MessageQueue.pm b/Koha/Schema/Result/MessageQueue.pm index f1ddb5e766..08b602882b 100644 --- a/Koha/Schema/Result/MessageQueue.pm +++ b/Koha/Schema/Result/MessageQueue.pm @@ -184,6 +184,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9u39S/GLtZwnZGp+xcZOBA +sub koha_object_class { + 'Koha::Notice::Message'; +} +sub koha_objects_class { + 'Koha::Notice::Messages'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/NeedMergeAuthority.pm b/Koha/Schema/Result/NeedMergeAuthority.pm index bbe16cefda..a4e4795e11 100644 --- a/Koha/Schema/Result/NeedMergeAuthority.pm +++ b/Koha/Schema/Result/NeedMergeAuthority.pm @@ -95,6 +95,11 @@ __PACKAGE__->set_primary_key("id"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7LzwIYvExKvNgr8/HDZlsg +sub koha_object_class { + 'Koha::Authority::MergeRequest'; +} +sub koha_objects_class { + 'Koha::Authority::MergeRequests'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/OauthAccessToken.pm b/Koha/Schema/Result/OauthAccessToken.pm index a3cb2492aa..6e14006d0c 100644 --- a/Koha/Schema/Result/OauthAccessToken.pm +++ b/Koha/Schema/Result/OauthAccessToken.pm @@ -67,6 +67,11 @@ __PACKAGE__->set_primary_key("access_token"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-09 12:50:58 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M6tueO6jmJwgmwMrqO1L0Q +sub koha_object_class { + 'Koha::OAuthAccessToken'; +} +sub koha_objects_class { + 'Koha::OAuthAccessTokens'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index 2d560896fe..9ce3a7479d 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -256,6 +256,9 @@ __PACKAGE__->belongs_to( }, ); +sub koha_object_class { + 'Koha::Old::Checkout'; +} sub koha_objects_class { 'Koha::Old::Checkouts'; } diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm index 24ca45a5ed..de9fc6cb27 100644 --- a/Koha/Schema/Result/OldReserve.pm +++ b/Koha/Schema/Result/OldReserve.pm @@ -300,6 +300,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-06-17 07:24:39 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZgGAW7ODBby3hGNJ41eeMA +sub koha_object_class { + 'Koha::Old::Hold'; +} +sub koha_objects_class { + 'Koha::Old::Holds'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/OpacNews.pm b/Koha/Schema/Result/OpacNews.pm index 120128edde..ef0183a287 100644 --- a/Koha/Schema/Result/OpacNews.pm +++ b/Koha/Schema/Result/OpacNews.pm @@ -171,6 +171,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gApTRM/dF6uZSMYyvkt4OQ +sub koha_object_class { + 'Koha::NewsItem'; +} +sub koha_objects_class { + 'Koha::NewsItems'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/PatronConsent.pm b/Koha/Schema/Result/PatronConsent.pm index 3ba8b5d986..bf0d6e1510 100644 --- a/Koha/Schema/Result/PatronConsent.pm +++ b/Koha/Schema/Result/PatronConsent.pm @@ -113,6 +113,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-20 13:00:20 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:as3b13eS31zkIPr9uxP7+A +sub koha_object_class { + 'Koha::Patron::Consent'; +} +sub koha_objects_class { + 'Koha::Patron::Consents'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Patronimage.pm b/Koha/Schema/Result/Patronimage.pm index 8feb4a0ef8..30cf1e0dcc 100644 --- a/Koha/Schema/Result/Patronimage.pm +++ b/Koha/Schema/Result/Patronimage.pm @@ -84,6 +84,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uuRGyWlemwOH1PCkvhqxdQ +sub koha_object_class { + 'Koha::Patron::Image'; +} +sub koha_objects_class { + 'Koha::Patron::Images'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index 8b91618210..73c98a3c19 100644 --- a/Koha/Schema/Result/Reserve.pm +++ b/Koha/Schema/Result/Reserve.pm @@ -353,4 +353,11 @@ __PACKAGE__->add_columns( '+suspend' => { is_boolean => 1 } ); +sub koha_object_class { + 'Koha::Hold'; +} +sub koha_objects_class { + 'Koha::Holds'; +} + 1; diff --git a/Koha/Schema/Result/SavedSql.pm b/Koha/Schema/Result/SavedSql.pm index 1ea198244a..f8567b3723 100644 --- a/Koha/Schema/Result/SavedSql.pm +++ b/Koha/Schema/Result/SavedSql.pm @@ -173,6 +173,11 @@ __PACKAGE__->set_primary_key("id"); # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-23 12:56:39 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f7wxGGnBk3z6mw2CkaeD9A +sub koha_object_class { + 'Koha::Report'; +} +sub koha_objects_class { + 'Koha::Reports'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Serialitem.pm b/Koha/Schema/Result/Serialitem.pm index 9a7056335a..5b838eab15 100644 --- a/Koha/Schema/Result/Serialitem.pm +++ b/Koha/Schema/Result/Serialitem.pm @@ -92,6 +92,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-13 13:53:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z43jqmURevaJeui7l8ThlQ +sub koha_object_class { + 'Koha::Serial::Item'; +} +sub koha_objects_class { + 'Koha::Serial::Items'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/SmsProvider.pm b/Koha/Schema/Result/SmsProvider.pm index f9015eadeb..44d2348825 100644 --- a/Koha/Schema/Result/SmsProvider.pm +++ b/Koha/Schema/Result/SmsProvider.pm @@ -99,6 +99,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-31 16:48:38 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U3LGi1zy3YN2Amin+bhXlA +sub koha_object_class { + 'Koha::SMS::Provider'; +} +sub koha_objects_class { + 'Koha::SMS::Providers'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Stockrotationitem.pm b/Koha/Schema/Result/Stockrotationitem.pm index 613bb8a891..1289f97497 100644 --- a/Koha/Schema/Result/Stockrotationitem.pm +++ b/Koha/Schema/Result/Stockrotationitem.pm @@ -113,5 +113,11 @@ __PACKAGE__->add_columns( '+fresh' => { is_boolean => 1 } ); -# You can replace this text with custom code or comments, and it will be preserved on regeneration +sub koha_object_class { + 'Koha::StockRotationItem'; +} +sub koha_objects_class { + 'Koha::StockRotationItems'; +} + 1; diff --git a/Koha/Schema/Result/Stockrotationrota.pm b/Koha/Schema/Result/Stockrotationrota.pm index aae6f69ec2..a719635624 100644 --- a/Koha/Schema/Result/Stockrotationrota.pm +++ b/Koha/Schema/Result/Stockrotationrota.pm @@ -105,5 +105,11 @@ __PACKAGE__->add_columns( '+active' => { is_boolean => 1 } ); -# You can replace this text with custom code or comments, and it will be preserved on regeneration +sub koha_object_class { + 'Koha::StockRotationRota'; +} +sub koha_objects_class { + 'Koha::StockRotationRotas'; +} + 1; diff --git a/Koha/Schema/Result/Stockrotationstage.pm b/Koha/Schema/Result/Stockrotationstage.pm index 3836314639..845a712b33 100644 --- a/Koha/Schema/Result/Stockrotationstage.pm +++ b/Koha/Schema/Result/Stockrotationstage.pm @@ -136,4 +136,11 @@ __PACKAGE__->load_components(qw( Ordered )); __PACKAGE__->grouping_column('rota_id'); # Our group_id +sub koha_object_class { + 'Koha::StockRotationStage'; +} +sub koha_objects_class { + 'Koha::StockRotationStages'; +} + 1; diff --git a/Koha/Schema/Result/SubscriptionFrequency.pm b/Koha/Schema/Result/SubscriptionFrequency.pm index 654b223ab6..0c1bf7973f 100644 --- a/Koha/Schema/Result/SubscriptionFrequency.pm +++ b/Koha/Schema/Result/SubscriptionFrequency.pm @@ -111,6 +111,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AMA/p9t1S6NmZTAHThLROQ +sub koha_object_class { + 'Koha::Subscription::Frequency'; +} +sub koha_objects_class { + 'Koha::Subscription::Frequencys'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/SubscriptionNumberpattern.pm b/Koha/Schema/Result/SubscriptionNumberpattern.pm index c5b59b4a40..13a23c82f1 100644 --- a/Koha/Schema/Result/SubscriptionNumberpattern.pm +++ b/Koha/Schema/Result/SubscriptionNumberpattern.pm @@ -231,6 +231,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UxpUui+IbCUkKDIJOpYyUA +sub koha_object_class { + 'Koha::Subscription::Numberpattern'; +} +sub koha_objects_class { + 'Koha::Subscription::Numberpatterns'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Subscriptionhistory.pm b/Koha/Schema/Result/Subscriptionhistory.pm index 9a68222ffe..a82341ea38 100644 --- a/Koha/Schema/Result/Subscriptionhistory.pm +++ b/Koha/Schema/Result/Subscriptionhistory.pm @@ -104,6 +104,11 @@ __PACKAGE__->set_primary_key("subscriptionid"); # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-06-17 07:24:39 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SK33dc7lx/rDGX3tiR84ww +sub koha_object_class { + 'Koha::Subscription::History'; +} +sub koha_objects_class { + 'Koha::Subscription::Historys'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Subscriptionroutinglist.pm b/Koha/Schema/Result/Subscriptionroutinglist.pm index 7741142229..e218257986 100644 --- a/Koha/Schema/Result/Subscriptionroutinglist.pm +++ b/Koha/Schema/Result/Subscriptionroutinglist.pm @@ -123,6 +123,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AK595c56vgTa7ZjwZjberw +sub koha_object_class { + 'Koha::Subscription::Routinglist'; +} +sub koha_objects_class { + 'Koha::Subscription::Routinglists'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Systempreference.pm b/Koha/Schema/Result/Systempreference.pm index 22269d7397..2ff374e5ca 100644 --- a/Koha/Schema/Result/Systempreference.pm +++ b/Koha/Schema/Result/Systempreference.pm @@ -82,6 +82,11 @@ __PACKAGE__->set_primary_key("variable"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QI7OL4VHrXe8FridIOCZ4A +sub koha_object_class { + 'Koha::Config::SysPref'; +} +sub koha_objects_class { + 'Koha::Config::SysPrefs'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/TagAll.pm b/Koha/Schema/Result/TagAll.pm index d3c6d6bcb2..fbb8894886 100644 --- a/Koha/Schema/Result/TagAll.pm +++ b/Koha/Schema/Result/TagAll.pm @@ -132,6 +132,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-15 13:30:04 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3pY7wv0IRmQBSqr+EghQvw +sub koha_object_class { + 'Koha::Tag'; +} +sub koha_objects_class { + 'Koha::Tags'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/TagsApproval.pm b/Koha/Schema/Result/TagsApproval.pm index 92648b4f84..92b54b708d 100644 --- a/Koha/Schema/Result/TagsApproval.pm +++ b/Koha/Schema/Result/TagsApproval.pm @@ -125,6 +125,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-01-18 08:31:57 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4cvTasSpJ2c1vvVVe/R3UQ +sub koha_object_class { + 'Koha::Tags::Approval'; +} +sub koha_objects_class { + 'Koha::Tags::Approvals'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/TagsIndex.pm b/Koha/Schema/Result/TagsIndex.pm index 642fb160a1..a8b9b7e7f5 100644 --- a/Koha/Schema/Result/TagsIndex.pm +++ b/Koha/Schema/Result/TagsIndex.pm @@ -103,6 +103,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-01-18 08:31:57 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ewTrnc9D1jcoyf65+MrSGQ +sub koha_object_class { + 'Koha::Tags::Index'; +} +sub koha_objects_class { + 'Koha::Tags::Indexs'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Virtualshelve.pm b/Koha/Schema/Result/Virtualshelve.pm index 4574cd7552..83334f8ac4 100644 --- a/Koha/Schema/Result/Virtualshelve.pm +++ b/Koha/Schema/Result/Virtualshelve.pm @@ -184,6 +184,11 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-08 14:19:17 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xoq0lhLouCbkAp6F4ZyMGQ +sub koha_object_class { + 'Koha::Virtualshelf'; +} +sub koha_objects_class { + 'Koha::Virtualshelves'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; diff --git a/Koha/Schema/Result/Z3950server.pm b/Koha/Schema/Result/Z3950server.pm index f2a5de2647..e72eb9a4ae 100644 --- a/Koha/Schema/Result/Z3950server.pm +++ b/Koha/Schema/Result/Z3950server.pm @@ -185,6 +185,11 @@ __PACKAGE__->set_primary_key("id"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KK2y1pbgVh1hOVLAXL1e/w +sub koha_object_class { + 'Koha::Z3950Server'; +} +sub koha_objects_class { + 'Koha::Z3950Servers'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.20.1