Bug 21385: Define the Koha object class for orders
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Oct 2018 14:38:04 +0000 (11:38 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 1 Oct 2018 23:57:18 +0000 (23:57 +0000)
It fixes the following issue:
t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t .. 1/40 Can't
locate object method "_new_from_dbic" via package "Koha::Aqorder"
(perhaps you forgot to load "Koha::Aqorder"?) at
/home/vagrant/kohaclone/Koha/Object.pm line 230.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Schema/Result/Aqorder.pm

index f0dca06..8035118 100644 (file)
@@ -664,6 +664,11 @@ __PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-31 11:51:37
 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GQEXetlivZm7buQohl8m4A
 
+sub koha_objects_class {
+    'Koha::Acquisition::Orders';
+}
+sub koha_object_class {
+    'Koha::Acquisition::Order';
+}
 
-# You can replace this text with custom code or comments, and it will be preserved on regeneration
 1;