X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/ee8f75567ae4752208b98b82dcab5ec7d5d1e51f..01b298ec34411c2eb6272cad65d5065cf6e812f5:/SL/DB/Note.pm 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;