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 <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-06-18 21:42:07 -05:00 committed by Martin Renvoize
parent b6dc26e93d
commit a60a6f40c3
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
65 changed files with 393 additions and 59 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -288,4 +288,11 @@ __PACKAGE__->belongs_to(
},
);
sub koha_object_class {
'Koha::Checkout';
}
sub koha_objects_class {
'Koha::Checkouts';
}
1;

View File

@ -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;

View File

@ -262,4 +262,11 @@ __PACKAGE__->has_many(
}
);
sub koha_object_class {
'Koha::ItemType';
}
sub koha_objects_class {
'Koha::ItemTypes';
}
1;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -256,6 +256,9 @@ __PACKAGE__->belongs_to(
},
);
sub koha_object_class {
'Koha::Old::Checkout';
}
sub koha_objects_class {
'Koha::Old::Checkouts';
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -354,4 +354,11 @@ __PACKAGE__->add_columns(
'+suspend' => { is_boolean => 1 }
);
sub koha_object_class {
'Koha::Hold';
}
sub koha_objects_class {
'Koha::Holds';
}
1;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;