From: Sven Schöling Date: Wed, 14 Nov 2012 15:10:13 +0000 (+0100) Subject: Includeprobleme bei SL/DB Objekten vermeiden X-Git-Tag: release-3.1.0beta1~742 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f64be46da8e7aa38078141a08390a0f6560605fe;p=kivitendo-erp.git Includeprobleme bei SL/DB Objekten vermeiden --- diff --git a/SL/DB/CsvImportProfile.pm b/SL/DB/CsvImportProfile.pm index 0b1a00cd1..a0e1fa715 100644 --- a/SL/DB/CsvImportProfile.pm +++ b/SL/DB/CsvImportProfile.pm @@ -4,7 +4,7 @@ use strict; use List::Util qw(first); -use SL::DB::MetaSetup::CsvImportProfile; +require SL::DB::MetaSetup::CsvImportProfile; use Rose::DB::Object::Helpers qw(clone_and_reset); __PACKAGE__->meta->add_relationship( diff --git a/SL/DB/CsvImportProfileSetting.pm b/SL/DB/CsvImportProfileSetting.pm index b1acf2431..b3ba350e3 100644 --- a/SL/DB/CsvImportProfileSetting.pm +++ b/SL/DB/CsvImportProfileSetting.pm @@ -5,10 +5,10 @@ package SL::DB::CsvImportProfileSetting; use strict; -use SL::DB::MetaSetup::CsvImportProfileSetting; use Rose::DB::Object::Helpers qw(clone); -# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. +require SL::DB::MetaSetup::CsvImportProfileSetting; + __PACKAGE__->meta->make_manager_class; # Helpers' clone_and_reset also kills compund keys like in this case kay+id