From: G. Richardson Date: Wed, 4 Oct 2017 08:00:58 +0000 (+0200) Subject: PartsGroup - Rose relationship für parts X-Git-Tag: release-3.5.4~732 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=36927d8104524417b388021e598db886ae1569c2;p=kivitendo-erp.git PartsGroup - Rose relationship für parts --- diff --git a/SL/DB/PartsGroup.pm b/SL/DB/PartsGroup.pm index d6122949c..4a7f607f4 100644 --- a/SL/DB/PartsGroup.pm +++ b/SL/DB/PartsGroup.pm @@ -14,6 +14,11 @@ __PACKAGE__->meta->add_relationship( type => 'many to many', map_class => 'SL::DB::CustomVariableConfigPartsgroup', }, + parts => { + type => 'one to many', + class => 'SL::DB::Part', + column_map => { id => 'partsgroup_id' }, + }, ); __PACKAGE__->meta->initialize;