Relation von FollowUp auf FollowUpLink
authorThomas Heck <theck@linet-services.de>
Fri, 8 Nov 2013 13:19:48 +0000 (14:19 +0100)
committerThomas Heck <theck@linet-services.de>
Fri, 8 Nov 2013 13:24:42 +0000 (14:24 +0100)
SL/DB/FollowUp.pm

index 734ebed..b7121b2 100644 (file)
@@ -7,6 +7,14 @@ use strict;
 
 use SL::DB::MetaSetup::FollowUp;
 
+__PACKAGE__->meta->add_relationships(
+  follow_up_link => {
+    type         => 'one to one',
+    class        => 'SL::DB::FollowUpLink',
+    column_map   => { id => 'follow_up_id' },
+  },
+);
+
 __PACKAGE__->meta->initialize;
 
 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.