From fd3d9c3c232923feffbc8ac4a2be895a274b34a3 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Tue, 9 Aug 2016 15:43:17 +0200 Subject: [PATCH] =?utf8?q?inventory=20relationship=20f=C3=BCr=20DeliveryOr?= =?utf8?q?derItemsStock?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/DeliveryOrderItemsStock.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SL/DB/DeliveryOrderItemsStock.pm b/SL/DB/DeliveryOrderItemsStock.pm index 8d8c72fcf..97fb2a19a 100644 --- a/SL/DB/DeliveryOrderItemsStock.pm +++ b/SL/DB/DeliveryOrderItemsStock.pm @@ -7,6 +7,14 @@ use strict; use SL::DB::MetaSetup::DeliveryOrderItemsStock; +__PACKAGE__->meta->add_relationship( + inventory => { + type => 'one to one', + class => 'SL::DB::Inventory', + column_map => { id => 'delivery_order_items_stock_id' }, + }, +); + __PACKAGE__->meta->initialize; # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. -- 2.20.1