X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FNote.pm;h=c539d6a0510c4367a248f519b2ac76f5ffec0a11;hb=0d34b38184fdd6a6f1dd1bc7ce509c560e326b4e;hp=441a2731ef0fd87ef6179b11d96bbca9ee962960;hpb=6ac47be4e3e318ea212ca595195b0b55a9c386a3;p=kivitendo-erp.git diff --git a/SL/DB/Note.pm b/SL/DB/Note.pm index 441a2731e..c539d6a05 100644 --- a/SL/DB/Note.pm +++ b/SL/DB/Note.pm @@ -7,17 +7,19 @@ use strict; use SL::DB::MetaSetup::Note; -__PACKAGE__->meta->initialize; - -# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. -__PACKAGE__->meta->make_manager_class; __PACKAGE__->meta->add_relationships( - followup => { + follow_up => { type => 'one to one', class => 'SL::DB::FollowUp', - column_map => { id => 'id' }, + 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;