Form::_dbconnect_options nach SL::DBConnect::get_options verschoben
[kivitendo-erp.git] / SL / DB / DeliveryOrderItem.pm
index 873c0a4..d50a63f 100644 (file)
@@ -12,14 +12,16 @@ use SL::DB::Helper::CustomVariables (
 );
 
 __PACKAGE__->meta->make_manager_class;
+__PACKAGE__->meta->add_relationship(
+  unit_obj       => {
+    type         => 'many to one',
+    class        => 'SL::DB::Unit',
+    column_map   => { unit => 'name' },
+  },
+);
 
 __PACKAGE__->meta->initialize;
 
 # methods
 
-sub part {
-  # canonial alias for parts.
-  return shift->parts;
-}
-
 1;