PartsGroup - Rose relationship für parts
[kivitendo-erp.git] / 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;