Bug 17499: Define koha_object(s)_class where needed

This patch adds koha_object(s)_class for needed modules
to fix issues with tests.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Sam Lau <samalau@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Emmi Takkinen 2020-02-20 12:45:27 +02:00 committed by Tomas Cohen Arazi
parent b5b88b053d
commit 5ed051b114
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
5 changed files with 40 additions and 0 deletions

View file

@ -193,4 +193,12 @@ __PACKAGE__->many_to_many(
# You can replace this text with custom content, and it will be preserved on regeneration
sub koha_object_class {
'Koha::Patron::Message::Preference';
}
sub koha_objects_class {
'Koha::Patron::Message::Preferences';
}
1;

View file

@ -112,4 +112,12 @@ __PACKAGE__->belongs_to(
# You can replace this text with custom content, and it will be preserved on regeneration
sub koha_object_class {
'Koha::Patron::Message::Transport::Preference';
}
sub koha_objects_class {
'Koha::Patron::Message::Transport::Preferences';
}
1;

View file

@ -117,4 +117,12 @@ __PACKAGE__->has_many(
# You can replace this text with custom content, and it will be preserved on regeneration
sub koha_object_class {
'Koha::Patron::Message::Attribute';
}
sub koha_objects_class {
'Koha::Patron::Message::Attributes';
}
1;

View file

@ -134,4 +134,12 @@ __PACKAGE__->belongs_to(
# You can replace this text with custom content, and it will be preserved on regeneration
sub koha_object_class {
'Koha::Patron::Message::Transport';
}
sub koha_objects_class {
'Koha::Patron::Message::Transports';
}
1;

View file

@ -155,4 +155,12 @@ __PACKAGE__->many_to_many(
# You can replace this text with custom content, and it will be preserved on regeneration
sub koha_object_class {
'Koha::Patron::Message::Transport::Type';
}
sub koha_objects_class {
'Koha::Patron::Message::Transport::Types';
}
1;