]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/PartsGroup.pm
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / DB / PartsGroup.pm
index d6122949ce8c67227b4fea5e4d89b21ba553a350..4a7f607f45da956776e1a11ac0aced0d06cea1ac 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;