Weitere Modelvernüpfungen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 22 Nov 2010 16:38:00 +0000 (17:38 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 13 Jan 2011 12:57:26 +0000 (13:57 +0100)
SL/DB/Invoice.pm

index 25393c6..fcace59 100644 (file)
@@ -53,6 +53,11 @@ __PACKAGE__->meta->add_relationship(
     class      => 'SL::DB::Language',
     column_map => { language_id => 'id' },
   },
+  employee     => {
+    type       => 'one to one',
+    class      => 'SL::DB::Employee',
+    column_map => { employee_id => 'id' },
+  },
 );
 
 __PACKAGE__->meta->initialize;