From b7cd46a282f4a1a55bfd6168259446acd37e7cf5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 4 Jun 2013 15:46:48 +0200 Subject: [PATCH] rose_auto_create_model.pl: Datenbankschema auch in SL/DB/...pm hinterlegen --- scripts/rose_auto_create_model.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.20.1