From: Sven Schöling Date: Mon, 9 Jan 2012 15:01:09 +0000 (+0100) Subject: rdbo models: Parts nach 066fbb38f X-Git-Tag: release-2.7.0beta1~82^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=968894aa36a9c5c5bcfdb972ce6d78d8dea19fcb;p=kivitendo-erp.git rdbo models: Parts nach 066fbb38f --- diff --git a/SL/DB/MetaSetup/Part.pm b/SL/DB/MetaSetup/Part.pm index d6814e8d0..d4e142b74 100644 --- a/SL/DB/MetaSetup/Part.pm +++ b/SL/DB/MetaSetup/Part.pm @@ -59,6 +59,11 @@ __PACKAGE__->meta->setup( class => 'SL::DB::Buchungsgruppe', key_columns => { buchungsgruppen_id => 'id' }, }, + + unit_obj => { + class => 'SL::DB::Unit', + key_columns => { unit => 'name' }, + }, ], ); diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 22fbc1b4c..952bce278 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -16,11 +16,6 @@ use SL::DB::Helper::CustomVariables ( ); __PACKAGE__->meta->add_relationships( - unit_obj => { - type => 'one to one', - class => 'SL::DB::Unit', - column_map => { unit => 'name' }, - }, assemblies => { type => 'one to many', class => 'SL::DB::Assembly',