Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / Aqinvoice.pm
index 3ec1475..fe1f8f2 100644 (file)
@@ -113,6 +113,21 @@ __PACKAGE__->set_primary_key("invoiceid");
 
 =head1 RELATIONS
 
+=head2 aqinvoice_adjustments
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::AqinvoiceAdjustment>
+
+=cut
+
+__PACKAGE__->has_many(
+  "aqinvoice_adjustments",
+  "Koha::Schema::Result::AqinvoiceAdjustment",
+  { "foreign.invoiceid" => "self.invoiceid" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 aqorders
 
 Type: has_many
@@ -184,9 +199,14 @@ __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:SAUxWSdpMJK4atxhfgCAGg
+# 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;