SL::DB::Note gefixt
authorThomas Heck <theck@linet-services.de>
Fri, 8 Nov 2013 13:18:55 +0000 (14:18 +0100)
committerThomas Heck <theck@linet-services.de>
Fri, 8 Nov 2013 13:24:42 +0000 (14:24 +0100)
SL/DB/Note.pm

index 441a273..c539d6a 100644 (file)
@@ -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;