Verknüpfung zu Preisfaktoren ergänzt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 9 Nov 2010 07:46:54 +0000 (08:46 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:15:38 +0000 (16:15 +0100)
SL/DB/Part.pm

index ce9738f..4c3f463 100644 (file)
@@ -23,6 +23,11 @@ __PACKAGE__->meta->add_relationships(
     class        => 'SL::DB::PartsGroup',
     column_map   => { partsgroup_id => 'id' },
   },
+  price_factor   => {
+    type         => 'one to one',
+    class        => 'SL::DB::PriceFactor',
+    column_map   => { price_factor_id => 'id' },
+  },
 );
 
 __PACKAGE__->meta->initialize;