PartsGroup - Rose relationship für parts
authorG. Richardson <grichardson@kivitec.de>
Wed, 4 Oct 2017 08:00:58 +0000 (10:00 +0200)
committerG. Richardson <grichardson@kivitec.de>
Wed, 4 Oct 2017 08:04:08 +0000 (10:04 +0200)
SL/DB/PartsGroup.pm

index d612294..4a7f607 100644 (file)
@@ -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;