From 8b7b7b3f6252786b38bb6c9357fc00a08750b8db Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 18 Jan 2013 12:06:46 +0100 Subject: [PATCH] =?utf8?q?Rose:=20'with=5Fargs'=20nach=20Foreign-Key-Einf?= =?utf8?q?=C3=BChrung=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die Beziehung heißt nun 'parts' und nicht mehr 'part'. 'part' ist nur ein Alias. --- SL/DB/Invoice.pm | 2 +- SL/DB/Order.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index ff821ef75..b3adee734 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -25,7 +25,7 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::InvoiceItem', column_map => { id => 'trans_id' }, manager_args => { - with_objects => [ 'part' ] + with_objects => [ 'parts' ] } }, ); diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b3edda5dc..b23e1da82 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -23,7 +23,7 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::OrderItem', column_map => { id => 'trans_id' }, manager_args => { - with_objects => [ 'part' ] + with_objects => [ 'parts' ] } }, periodic_invoices_config => { -- 2.20.1