From 36927d8104524417b388021e598db886ae1569c2 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 4 Oct 2017 10:00:58 +0200 Subject: [PATCH] =?utf8?q?PartsGroup=20-=20Rose=20relationship=20f=C3=BCr?= =?utf8?q?=20parts?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/PartsGroup.pm | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.20.1