From: Thomas Heck Date: Fri, 8 Nov 2013 13:19:48 +0000 (+0100) Subject: Relation von FollowUp auf FollowUpLink X-Git-Tag: release-3.1.0beta1~22^2~167 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c0cd58d9f9a8451cbb9af87d617056aeb9166bd3;p=kivitendo-erp.git Relation von FollowUp auf FollowUpLink --- 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.