From 2d7e4203055156dccb2ca3fba82bbb32873ecd2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 21 Jun 2013 18:11:10 +0200 Subject: [PATCH] initialize in SL::DB::Objects statt im MetaSetup --- SL/DB/AccTransaction.pm | 2 ++ SL/DB/AuditTrail.pm | 2 ++ SL/DB/AuthClientGroup.pm | 2 ++ SL/DB/AuthClientUser.pm | 2 ++ SL/DB/AuthGroupRight.pm | 2 ++ SL/DB/AuthUserConfig.pm | 2 ++ SL/DB/AuthUserGroup.pm | 2 ++ SL/DB/BackgroundJob.pm | 2 ++ SL/DB/BackgroundJobHistory.pm | 2 ++ SL/DB/BankAccount.pm | 1 + SL/DB/Bin.pm | 2 ++ SL/DB/Business.pm | 2 ++ SL/DB/CsvImportProfileSetting.pm | 2 ++ SL/DB/CsvImportReportRow.pm | 2 ++ SL/DB/CsvImportReportStatus.pm | 2 ++ SL/DB/Currency.pm | 2 ++ SL/DB/CustomVariable.pm | 2 ++ SL/DB/CustomVariableConfig.pm | 2 ++ SL/DB/CustomVariableValidity.pm | 2 ++ SL/DB/Datev.pm | 2 ++ SL/DB/Default.pm | 2 ++ SL/DB/DeliveryOrderItemsStock.pm | 2 ++ SL/DB/Department.pm | 2 ++ SL/DB/DptTrans.pm | 2 ++ SL/DB/Draft.pm | 2 ++ SL/DB/Dunning.pm | 2 ++ SL/DB/DunningConfig.pm | 2 ++ SL/DB/Employee.pm | 2 ++ SL/DB/Exchangerate.pm | 2 ++ SL/DB/Finanzamt.pm | 2 ++ SL/DB/FollowUp.pm | 2 ++ SL/DB/FollowUpAccess.pm | 2 ++ SL/DB/FollowUpLink.pm | 2 ++ SL/DB/GLTransaction.pm | 2 ++ SL/DB/GenericTranslation.pm | 2 ++ SL/DB/History.pm | 2 ++ SL/DB/Inventory.pm | 2 ++ SL/DB/Language.pm | 2 ++ SL/DB/MakeModel.pm | 2 ++ SL/DB/Note.pm | 2 ++ SL/DB/PartsGroup.pm | 2 ++ SL/DB/PaymentTerm.pm | 2 ++ SL/DB/PeriodicInvoicesConfig.pm | 2 ++ SL/DB/Price.pm | 2 ++ SL/DB/PriceFactor.pm | 2 ++ SL/DB/Pricegroup.pm | 2 ++ SL/DB/Printer.pm | 2 ++ SL/DB/RecordLink.pm | 2 ++ SL/DB/SchemaInfo.pm | 2 ++ SL/DB/SepaExport.pm | 2 ++ SL/DB/SepaExportItem.pm | 2 ++ SL/DB/Shipto.pm | 2 ++ SL/DB/Status.pm | 2 ++ SL/DB/TaxKey.pm | 2 ++ SL/DB/TaxZone.pm | 2 ++ SL/DB/TodoUserConfig.pm | 2 ++ SL/DB/TransferType.pm | 2 ++ SL/DB/Translation.pm | 2 ++ SL/DB/TranslationPaymentTerm.pm | 2 ++ SL/DB/UnitsLanguage.pm | 2 ++ 60 files changed, 119 insertions(+) diff --git a/SL/DB/AccTransaction.pm b/SL/DB/AccTransaction.pm index 0f7871735..290732058 100644 --- a/SL/DB/AccTransaction.pm +++ b/SL/DB/AccTransaction.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::AccTransaction; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/AuditTrail.pm b/SL/DB/AuditTrail.pm index 9c2fbc0be..891d6f2cb 100644 --- a/SL/DB/AuditTrail.pm +++ b/SL/DB/AuditTrail.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::AuditTrail; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/AuthClientGroup.pm b/SL/DB/AuthClientGroup.pm index 8d31fbf4c..bdf6170c6 100644 --- a/SL/DB/AuthClientGroup.pm +++ b/SL/DB/AuthClientGroup.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::AuthClientGroup; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/AuthClientUser.pm b/SL/DB/AuthClientUser.pm index c01447e88..90b42bc21 100644 --- a/SL/DB/AuthClientUser.pm +++ b/SL/DB/AuthClientUser.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::AuthClientUser; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/AuthGroupRight.pm b/SL/DB/AuthGroupRight.pm index 1ba9ae199..bfaa6fb30 100644 --- a/SL/DB/AuthGroupRight.pm +++ b/SL/DB/AuthGroupRight.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::AuthGroupRight; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/AuthUserConfig.pm b/SL/DB/AuthUserConfig.pm index b52a1a1e7..292bce219 100644 --- a/SL/DB/AuthUserConfig.pm +++ b/SL/DB/AuthUserConfig.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::AuthUserConfig; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/AuthUserGroup.pm b/SL/DB/AuthUserGroup.pm index be88c4e99..7212fcf8b 100644 --- a/SL/DB/AuthUserGroup.pm +++ b/SL/DB/AuthUserGroup.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::AuthUserGroup; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/BackgroundJob.pm b/SL/DB/BackgroundJob.pm index f5c4b21f6..e8ae55bac 100644 --- a/SL/DB/BackgroundJob.pm +++ b/SL/DB/BackgroundJob.pm @@ -10,6 +10,8 @@ use SL::DB::Manager::BackgroundJob; use SL::System::Process; +__PACKAGE__->meta->initialize; + __PACKAGE__->before_save('_before_save_set_next_run_at'); sub _before_save_set_next_run_at { diff --git a/SL/DB/BackgroundJobHistory.pm b/SL/DB/BackgroundJobHistory.pm index 4be8f66c3..145548039 100644 --- a/SL/DB/BackgroundJobHistory.pm +++ b/SL/DB/BackgroundJobHistory.pm @@ -8,4 +8,6 @@ use strict; use SL::DB::MetaSetup::BackgroundJobHistory; use SL::DB::Manager::BackgroundJobHistory; +__PACKAGE__->meta->initialize; + 1; diff --git a/SL/DB/BankAccount.pm b/SL/DB/BankAccount.pm index c293c6c34..4ef201b99 100644 --- a/SL/DB/BankAccount.pm +++ b/SL/DB/BankAccount.pm @@ -7,6 +7,7 @@ use strict; use SL::DB::MetaSetup::BankAccount; +__PACKAGE__->meta->initialize; # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Bin.pm b/SL/DB/Bin.pm index e5397ef73..8d856c4fa 100644 --- a/SL/DB/Bin.pm +++ b/SL/DB/Bin.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::Bin; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/Business.pm b/SL/DB/Business.pm index 1fea0ef81..ada525da5 100644 --- a/SL/DB/Business.pm +++ b/SL/DB/Business.pm @@ -5,6 +5,8 @@ use strict; use SL::DB::MetaSetup::Business; use SL::DB::Manager::Business; +__PACKAGE__->meta->initialize; + sub validate { my ($self) = @_; diff --git a/SL/DB/CsvImportProfileSetting.pm b/SL/DB/CsvImportProfileSetting.pm index b3ba350e3..11ffb16b2 100644 --- a/SL/DB/CsvImportProfileSetting.pm +++ b/SL/DB/CsvImportProfileSetting.pm @@ -9,6 +9,8 @@ use Rose::DB::Object::Helpers qw(clone); require SL::DB::MetaSetup::CsvImportProfileSetting; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; # Helpers' clone_and_reset also kills compund keys like in this case kay+id diff --git a/SL/DB/CsvImportReportRow.pm b/SL/DB/CsvImportReportRow.pm index b8efb31e7..139b85c06 100644 --- a/SL/DB/CsvImportReportRow.pm +++ b/SL/DB/CsvImportReportRow.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::CsvImportReportRow; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/CsvImportReportStatus.pm b/SL/DB/CsvImportReportStatus.pm index 68a041b4c..5371f0c0f 100644 --- a/SL/DB/CsvImportReportStatus.pm +++ b/SL/DB/CsvImportReportStatus.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::CsvImportReportStatus; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Currency.pm b/SL/DB/Currency.pm index 9b24f4105..f7fe0e21d 100644 --- a/SL/DB/Currency.pm +++ b/SL/DB/Currency.pm @@ -5,4 +5,6 @@ use strict; use SL::DB::MetaSetup::Currency; use SL::DB::Manager::Currency; +__PACKAGE__->meta->initialize; + 1; diff --git a/SL/DB/CustomVariable.pm b/SL/DB/CustomVariable.pm index 26c09cf5b..09718de65 100644 --- a/SL/DB/CustomVariable.pm +++ b/SL/DB/CustomVariable.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::CustomVariable; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/CustomVariableConfig.pm b/SL/DB/CustomVariableConfig.pm index 6c836f04f..fd247d827 100644 --- a/SL/DB/CustomVariableConfig.pm +++ b/SL/DB/CustomVariableConfig.pm @@ -9,6 +9,8 @@ use SL::DB::MetaSetup::CustomVariableConfig; use SL::DB::Manager::CustomVariableConfig; use SL::DB::Helper::ActsAsList; +__PACKAGE__->meta->initialize; + __PACKAGE__->configure_acts_as_list(group_by => [qw(module)]); sub validate { diff --git a/SL/DB/CustomVariableValidity.pm b/SL/DB/CustomVariableValidity.pm index a96afdb23..d0fa20b2f 100644 --- a/SL/DB/CustomVariableValidity.pm +++ b/SL/DB/CustomVariableValidity.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::CustomVariableValidity; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Datev.pm b/SL/DB/Datev.pm index 4d33d5820..5baf28397 100644 --- a/SL/DB/Datev.pm +++ b/SL/DB/Datev.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Datev; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Default.pm b/SL/DB/Default.pm index 4ea7be63f..ee9e2c232 100644 --- a/SL/DB/Default.pm +++ b/SL/DB/Default.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::Default; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/DeliveryOrderItemsStock.pm b/SL/DB/DeliveryOrderItemsStock.pm index 2b951ef0a..8d8c72fcf 100644 --- a/SL/DB/DeliveryOrderItemsStock.pm +++ b/SL/DB/DeliveryOrderItemsStock.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::DeliveryOrderItemsStock; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Department.pm b/SL/DB/Department.pm index 133886cdb..afca1900f 100644 --- a/SL/DB/Department.pm +++ b/SL/DB/Department.pm @@ -7,6 +7,8 @@ use SL::DB::Manager::Department; use SL::DB::DptTrans; +__PACKAGE__->meta->initialize; + sub validate { my ($self) = @_; diff --git a/SL/DB/DptTrans.pm b/SL/DB/DptTrans.pm index 3712903a2..d91681442 100644 --- a/SL/DB/DptTrans.pm +++ b/SL/DB/DptTrans.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::DptTrans; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Draft.pm b/SL/DB/Draft.pm index ea6ebd65e..d511313db 100644 --- a/SL/DB/Draft.pm +++ b/SL/DB/Draft.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Draft; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Dunning.pm b/SL/DB/Dunning.pm index 80ffd7778..9be274b64 100644 --- a/SL/DB/Dunning.pm +++ b/SL/DB/Dunning.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Dunning; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/DunningConfig.pm b/SL/DB/DunningConfig.pm index 059b79888..57e545e40 100644 --- a/SL/DB/DunningConfig.pm +++ b/SL/DB/DunningConfig.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::DunningConfig; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Employee.pm b/SL/DB/Employee.pm index 92444551e..4cc109a68 100644 --- a/SL/DB/Employee.pm +++ b/SL/DB/Employee.pm @@ -5,6 +5,8 @@ use strict; use SL::DB::MetaSetup::Employee; use SL::DB::Manager::Employee; +__PACKAGE__->meta->initialize; + sub has_right { my $self = shift; my $right = shift; diff --git a/SL/DB/Exchangerate.pm b/SL/DB/Exchangerate.pm index cd3eaeefe..c676ad54c 100644 --- a/SL/DB/Exchangerate.pm +++ b/SL/DB/Exchangerate.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Exchangerate; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Finanzamt.pm b/SL/DB/Finanzamt.pm index 82daba1ef..ea820db94 100644 --- a/SL/DB/Finanzamt.pm +++ b/SL/DB/Finanzamt.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Finanzamt; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/FollowUp.pm b/SL/DB/FollowUp.pm index b50c90f2a..734ebedba 100644 --- a/SL/DB/FollowUp.pm +++ b/SL/DB/FollowUp.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::FollowUp; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/FollowUpAccess.pm b/SL/DB/FollowUpAccess.pm index 581a49796..b6059dc7a 100644 --- a/SL/DB/FollowUpAccess.pm +++ b/SL/DB/FollowUpAccess.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::FollowUpAccess; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/FollowUpLink.pm b/SL/DB/FollowUpLink.pm index 6945bfa8f..0ec7d8e2c 100644 --- a/SL/DB/FollowUpLink.pm +++ b/SL/DB/FollowUpLink.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::FollowUpLink; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/GLTransaction.pm b/SL/DB/GLTransaction.pm index b1550e9f5..352de036d 100644 --- a/SL/DB/GLTransaction.pm +++ b/SL/DB/GLTransaction.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::GLTransaction; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/GenericTranslation.pm b/SL/DB/GenericTranslation.pm index 14b5618a5..7b7ae647e 100644 --- a/SL/DB/GenericTranslation.pm +++ b/SL/DB/GenericTranslation.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::GenericTranslation; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/History.pm b/SL/DB/History.pm index c935a8237..7528b73f1 100644 --- a/SL/DB/History.pm +++ b/SL/DB/History.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::History; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Inventory.pm b/SL/DB/Inventory.pm index 42238dd15..b8f28a37b 100644 --- a/SL/DB/Inventory.pm +++ b/SL/DB/Inventory.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Inventory; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Language.pm b/SL/DB/Language.pm index 3248f386c..802a126a8 100644 --- a/SL/DB/Language.pm +++ b/SL/DB/Language.pm @@ -5,4 +5,6 @@ use strict; use SL::DB::MetaSetup::Language; use SL::DB::Manager::Language; +__PACKAGE__->meta->initialize; + 1; diff --git a/SL/DB/MakeModel.pm b/SL/DB/MakeModel.pm index 8831a66e6..a99f64eb6 100644 --- a/SL/DB/MakeModel.pm +++ b/SL/DB/MakeModel.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::MakeModel; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Note.pm b/SL/DB/Note.pm index 367829512..82c577602 100644 --- a/SL/DB/Note.pm +++ b/SL/DB/Note.pm @@ -7,6 +7,8 @@ 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; diff --git a/SL/DB/PartsGroup.pm b/SL/DB/PartsGroup.pm index 88ab22fd7..f81e977a1 100644 --- a/SL/DB/PartsGroup.pm +++ b/SL/DB/PartsGroup.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::PartsGroup; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/PaymentTerm.pm b/SL/DB/PaymentTerm.pm index 3630a7094..6a40a40ab 100644 --- a/SL/DB/PaymentTerm.pm +++ b/SL/DB/PaymentTerm.pm @@ -7,6 +7,8 @@ use SL::DB::Manager::PaymentTerm; use SL::DB::Helper::ActsAsList; use SL::DB::Helper::TranslatedAttributes; +__PACKAGE__->meta->initialize; + sub validate { my ($self) = @_; diff --git a/SL/DB/PeriodicInvoicesConfig.pm b/SL/DB/PeriodicInvoicesConfig.pm index 2b4542a97..7480c3a5f 100644 --- a/SL/DB/PeriodicInvoicesConfig.pm +++ b/SL/DB/PeriodicInvoicesConfig.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::PeriodicInvoicesConfig; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Price.pm b/SL/DB/Price.pm index 9029dff3c..93f9ddec0 100644 --- a/SL/DB/Price.pm +++ b/SL/DB/Price.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Price; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/PriceFactor.pm b/SL/DB/PriceFactor.pm index cf07b52aa..591a97d07 100644 --- a/SL/DB/PriceFactor.pm +++ b/SL/DB/PriceFactor.pm @@ -5,6 +5,8 @@ use strict; use SL::DB::MetaSetup::PriceFactor; use SL::DB::Helper::ActsAsList; +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; 1; diff --git a/SL/DB/Pricegroup.pm b/SL/DB/Pricegroup.pm index 329dc41b2..1504448b0 100644 --- a/SL/DB/Pricegroup.pm +++ b/SL/DB/Pricegroup.pm @@ -5,4 +5,6 @@ use strict; use SL::DB::MetaSetup::Pricegroup; use SL::DB::Manager::Pricegroup; +__PACKAGE__->meta->initialize; + 1; diff --git a/SL/DB/Printer.pm b/SL/DB/Printer.pm index 83f914806..046027bc5 100644 --- a/SL/DB/Printer.pm +++ b/SL/DB/Printer.pm @@ -6,6 +6,8 @@ use SL::DB::MetaSetup::Printer; use SL::DB::Manager::Printer; use SL::DB::Helper::Util; +__PACKAGE__->meta->initialize; + sub description { goto &printer_description; } diff --git a/SL/DB/RecordLink.pm b/SL/DB/RecordLink.pm index 7aed15a77..490c66c6b 100644 --- a/SL/DB/RecordLink.pm +++ b/SL/DB/RecordLink.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::RecordLink; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/SchemaInfo.pm b/SL/DB/SchemaInfo.pm index b1c38d4a6..f36b868a2 100644 --- a/SL/DB/SchemaInfo.pm +++ b/SL/DB/SchemaInfo.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::SchemaInfo; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/SepaExport.pm b/SL/DB/SepaExport.pm index ab450451d..7bec1b985 100644 --- a/SL/DB/SepaExport.pm +++ b/SL/DB/SepaExport.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::SepaExport; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/SepaExportItem.pm b/SL/DB/SepaExportItem.pm index 757011660..b75e05376 100644 --- a/SL/DB/SepaExportItem.pm +++ b/SL/DB/SepaExportItem.pm @@ -4,6 +4,8 @@ use strict; use SL::DB::MetaSetup::SepaExportItem; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/Shipto.pm b/SL/DB/Shipto.pm index 2492ac7ec..8795a1b50 100644 --- a/SL/DB/Shipto.pm +++ b/SL/DB/Shipto.pm @@ -7,6 +7,8 @@ use SL::DB::MetaSetup::Shipto; our @SHIPTO_VARIABLES = qw(shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptocontact shiptophone shiptofax shiptoemail shiptodepartment_1 shiptodepartment_2); +__PACKAGE__->meta->initialize; + __PACKAGE__->meta->make_manager_class; sub displayable_id { diff --git a/SL/DB/Status.pm b/SL/DB/Status.pm index 38d230e29..de0a2f107 100644 --- a/SL/DB/Status.pm +++ b/SL/DB/Status.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Status; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/TaxKey.pm b/SL/DB/TaxKey.pm index bd27ccf56..263a60823 100644 --- a/SL/DB/TaxKey.pm +++ b/SL/DB/TaxKey.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::TaxKey; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/TaxZone.pm b/SL/DB/TaxZone.pm index 7e0f2e725..3dfb31355 100644 --- a/SL/DB/TaxZone.pm +++ b/SL/DB/TaxZone.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::TaxZone; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/TodoUserConfig.pm b/SL/DB/TodoUserConfig.pm index fd12020bd..fb5fa68f8 100644 --- a/SL/DB/TodoUserConfig.pm +++ b/SL/DB/TodoUserConfig.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::TodoUserConfig; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/TransferType.pm b/SL/DB/TransferType.pm index 9d13a865b..bf45998e1 100644 --- a/SL/DB/TransferType.pm +++ b/SL/DB/TransferType.pm @@ -8,6 +8,8 @@ use strict; use SL::DB::MetaSetup::TransferType; use SL::DB::Manager::TransferType; +__PACKAGE__->meta->initialize; + # methods sub description_t8 { diff --git a/SL/DB/Translation.pm b/SL/DB/Translation.pm index 841a3a86a..82362d406 100644 --- a/SL/DB/Translation.pm +++ b/SL/DB/Translation.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::Translation; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/TranslationPaymentTerm.pm b/SL/DB/TranslationPaymentTerm.pm index 92cf84a5e..04c450773 100644 --- a/SL/DB/TranslationPaymentTerm.pm +++ b/SL/DB/TranslationPaymentTerm.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::TranslationPaymentTerm; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; diff --git a/SL/DB/UnitsLanguage.pm b/SL/DB/UnitsLanguage.pm index 256da5fd9..41f85c92f 100644 --- a/SL/DB/UnitsLanguage.pm +++ b/SL/DB/UnitsLanguage.pm @@ -7,6 +7,8 @@ use strict; use SL::DB::MetaSetup::UnitsLanguage; +__PACKAGE__->meta->initialize; + # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; -- 2.20.1