From: Moritz Bunkus Date: Thu, 17 Jan 2013 14:49:07 +0000 (+0100) Subject: Rose-Beziehungstypen gefixt X-Git-Tag: release-3.1.0beta1~687 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dd6282f6e20d531511ae35cadc491a8c7ab8bad5;p=kivitendo-erp.git Rose-Beziehungstypen gefixt Behebt #2139. --- diff --git a/SL/DB/Assembly.pm b/SL/DB/Assembly.pm index 2bc9c16b8..22312144c 100644 --- a/SL/DB/Assembly.pm +++ b/SL/DB/Assembly.pm @@ -9,7 +9,7 @@ use SL::DB::MetaSetup::Assembly; __PACKAGE__->meta->add_relationships( part => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Part', column_map => { parts_id => 'id' }, }, diff --git a/SL/DB/DeliveryOrderItem.pm b/SL/DB/DeliveryOrderItem.pm index f35928850..433e676b0 100644 --- a/SL/DB/DeliveryOrderItem.pm +++ b/SL/DB/DeliveryOrderItem.pm @@ -14,7 +14,7 @@ use SL::DB::Helper::CustomVariables ( __PACKAGE__->meta->make_manager_class; __PACKAGE__->meta->add_relationship( unit_obj => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, }, diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 016f94575..36f0870d0 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -13,7 +13,7 @@ use SL::DB::Helper::CustomVariables ( __PACKAGE__->meta->add_relationship( unit_obj => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, }, diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b3edda5dc..0c46f5673 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -27,7 +27,7 @@ __PACKAGE__->meta->add_relationship( } }, periodic_invoices_config => { - type => 'one to one', + type => 'one to many', class => 'SL::DB::PeriodicInvoicesConfig', column_map => { id => 'oe_id' }, }, diff --git a/SL/DB/OrderItem.pm b/SL/DB/OrderItem.pm index 7372f81a8..f7ff3bbe6 100644 --- a/SL/DB/OrderItem.pm +++ b/SL/DB/OrderItem.pm @@ -17,7 +17,7 @@ use SL::DB::Helper::CustomVariables ( __PACKAGE__->meta->add_relationship( unit_obj => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, }, diff --git a/SL/DB/PeriodicInvoice.pm b/SL/DB/PeriodicInvoice.pm index 37084ef32..bb5d218e9 100644 --- a/SL/DB/PeriodicInvoice.pm +++ b/SL/DB/PeriodicInvoice.pm @@ -6,7 +6,7 @@ use SL::DB::MetaSetup::PeriodicInvoice; __PACKAGE__->meta->add_relationships( invoice => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Invoice', column_map => { ar_id => 'id' }, }, diff --git a/SL/DB/PeriodicInvoicesConfig.pm b/SL/DB/PeriodicInvoicesConfig.pm index bb64a5b3c..c9ef22285 100644 --- a/SL/DB/PeriodicInvoicesConfig.pm +++ b/SL/DB/PeriodicInvoicesConfig.pm @@ -6,7 +6,7 @@ use SL::DB::MetaSetup::PeriodicInvoicesConfig; __PACKAGE__->meta->add_relationships( order => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Order', column_map => { oe_id => 'id' }, }, diff --git a/SL/DB/Tax.pm b/SL/DB/Tax.pm index 017b5f13f..7678d5f7e 100644 --- a/SL/DB/Tax.pm +++ b/SL/DB/Tax.pm @@ -4,7 +4,7 @@ use strict; use SL::DB::MetaSetup::Tax; -__PACKAGE__->meta->add_relationships(chart => { type => 'one to one', +__PACKAGE__->meta->add_relationships(chart => { type => 'many to one', class => 'SL::DB::Chart', column_map => { chart_id => 'id' }, }, diff --git a/SL/DB/Unit.pm b/SL/DB/Unit.pm index 54b104d4f..59740e789 100644 --- a/SL/DB/Unit.pm +++ b/SL/DB/Unit.pm @@ -7,7 +7,7 @@ use SL::DB::Manager::Unit; __PACKAGE__->meta->add_relationships( base => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { base_unit => 'name' }, },