From: Moritz Bunkus Date: Tue, 4 Jun 2013 13:46:48 +0000 (+0200) Subject: rose_auto_create_model.pl: Datenbankschema auch in SL/DB/...pm hinterlegen X-Git-Tag: release-3.1.0beta1~366 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b7cd46a282f4a1a55bfd6168259446acd37e7cf5;p=kivitendo-erp.git rose_auto_create_model.pl: Datenbankschema auch in SL/DB/...pm hinterlegen --- diff --git a/scripts/rose_auto_create_model.pl b/scripts/rose_auto_create_model.pl index 7aab08393..1850f4599 100755 --- a/scripts/rose_auto_create_model.pl +++ b/scripts/rose_auto_create_model.pl @@ -93,7 +93,7 @@ sub process_table { my $file = "SL/DB/${package}.pm"; $schema = <meta->schema('$schema'); +__PACKAGE__->meta->schema('$schema'); CODE my $definition = eval <meta->table('$table'); -$schema + $schema __PACKAGE__->meta->auto_initialize; __PACKAGE__->meta->perl_class_definition(indent => 2); # , braces => 'bsd' @@ -137,6 +137,7 @@ use strict; use SL::DB::MetaSetup::${package}; # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. +$schema __PACKAGE__->meta->make_manager_class; 1;