From c0cd58d9f9a8451cbb9af87d617056aeb9166bd3 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Fri, 8 Nov 2013 14:19:48 +0100 Subject: [PATCH] Relation von FollowUp auf FollowUpLink --- SL/DB/FollowUp.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SL/DB/FollowUp.pm b/SL/DB/FollowUp.pm index 734ebedba..b7121b237 100644 --- a/SL/DB/FollowUp.pm +++ b/SL/DB/FollowUp.pm @@ -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. -- 2.20.1