From e9562f2efbe1c88fa9bcf6fd12e725bdb21a81c0 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Mon, 4 Nov 2013 14:48:09 +0100 Subject: [PATCH] DB::FollowUp: employee_obj in created_for umbenannt --- SL/DB/MetaSetup/FollowUp.pm | 8 ++++---- scripts/rose_auto_create_model.pl | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/SL/DB/MetaSetup/FollowUp.pm b/SL/DB/MetaSetup/FollowUp.pm index fc461512c..bda14ec5a 100644 --- a/SL/DB/MetaSetup/FollowUp.pm +++ b/SL/DB/MetaSetup/FollowUp.pm @@ -24,14 +24,14 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); __PACKAGE__->meta->foreign_keys( - employee => { + created_for => { class => 'SL::DB::Employee', - key_columns => { created_by => 'id' }, + key_columns => { created_for_user => 'id' }, }, - employee_obj => { + employee => { class => 'SL::DB::Employee', - key_columns => { created_for_user => 'id' }, + key_columns => { created_by => 'id' }, }, note => { diff --git a/scripts/rose_auto_create_model.pl b/scripts/rose_auto_create_model.pl index 09f49611c..bb246f86f 100755 --- a/scripts/rose_auto_create_model.pl +++ b/scripts/rose_auto_create_model.pl @@ -53,6 +53,7 @@ our %foreign_key_name_map = ( orderitems => { parts => 'part', trans => 'order', }, delivery_order_items => { parts => 'part' }, invoice => { parts => 'part' }, + follow_ups => { 'employee_obj' => 'created_for' }, periodic_invoices_configs => { oe => 'order' }, ); -- 2.20.1