X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FNote.pm;h=c539d6a0510c4367a248f519b2ac76f5ffec0a11;hb=fee5532a132c44dcfc1743393cba00c8e3397176;hp=36782951230cb46728338e1727af46b154d43d89;hpb=6cf3f7762efd40bee49a2b8f11bb4ab6915d9071;p=kivitendo-erp.git diff --git a/SL/DB/Note.pm b/SL/DB/Note.pm index 367829512..c539d6a05 100644 --- a/SL/DB/Note.pm +++ b/SL/DB/Note.pm @@ -7,7 +7,19 @@ use strict; use SL::DB::MetaSetup::Note; + +__PACKAGE__->meta->add_relationships( + follow_up => { + type => 'one to one', + class => 'SL::DB::FollowUp', + column_map => { id => 'note_id' }, + }, +); + +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; + 1;