From: Thomas Heck Date: Fri, 8 Nov 2013 13:18:55 +0000 (+0100) Subject: SL::DB::Note gefixt X-Git-Tag: release-3.1.0beta1~22^2~168 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=84530888321c20c44b7fe4a2ef4bc7dccabf13c2;p=kivitendo-erp.git SL::DB::Note gefixt --- 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;