]> wagnertech.de Git - mfinanz.git/commitdiff
rdbo models: Parts nach 066fbb38f
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 9 Jan 2012 15:01:09 +0000 (16:01 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 9 Jan 2012 15:01:09 +0000 (16:01 +0100)
SL/DB/MetaSetup/Part.pm
SL/DB/Part.pm

index d6814e8d0716f78eecd26e9a8176f36728b0fb4a..d4e142b741a3343bfe97091e8d6208f8f18c1662 100644 (file)
@@ -59,6 +59,11 @@ __PACKAGE__->meta->setup(
       class       => 'SL::DB::Buchungsgruppe',
       key_columns => { buchungsgruppen_id => 'id' },
     },
+
+    unit_obj => {
+      class       => 'SL::DB::Unit',
+      key_columns => { unit => 'name' },
+    },
   ],
 );
 
index 22fbc1b4c0b8a62dd629821a2808b2412ccc6b20..952bce278ba93057f3ef3e4523b7aaab379253f6 100644 (file)
@@ -16,11 +16,6 @@ use SL::DB::Helper::CustomVariables (
 );
 
 __PACKAGE__->meta->add_relationships(
-  unit_obj                     => {
-    type         => 'one to one',
-    class        => 'SL::DB::Unit',
-    column_map   => { unit => 'name' },
-  },
   assemblies                     => {
     type         => 'one to many',
     class        => 'SL::DB::Assembly',