From: Moritz Bunkus Date: Fri, 18 Jan 2013 11:06:46 +0000 (+0100) Subject: Rose: 'with_args' nach Foreign-Key-Einführung gefixt X-Git-Tag: release-3.1.0beta1~684 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8b7b7b3f6252786b38bb6c9357fc00a08750b8db;p=kivitendo-erp.git Rose: 'with_args' nach Foreign-Key-Einführung gefixt Die Beziehung heißt nun 'parts' und nicht mehr 'part'. 'part' ist nur ein Alias. --- 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 => {