From: Aaron Trevena Date: Sun, 26 Feb 2006 15:20:43 +0000 (+0000) Subject: small fixes from peter X-Git-Tag: 2.11~55 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fcef7418a2171a0a7fb8302285f56b0331ba1a4a;p=maypole.git small fixes from peter git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@463 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 7b17858..ae2ae58 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -275,7 +275,7 @@ documentation. However here is the most usage of setup where Maypole::Model::CDBI is the base class. My::App->setup($data_source, $user, $password, - { opitons => { # These are DB connection options + { options => { # These are DB connection options AutoCommit => 0, RaiseError => 1, ... diff --git a/lib/Maypole/Model/CDBI.pm b/lib/Maypole/Model/CDBI.pm index 5d3bebe..a62c8fc 100644 --- a/lib/Maypole/Model/CDBI.pm +++ b/lib/Maypole/Model/CDBI.pm @@ -583,7 +583,9 @@ sub setup_database { ); $config->{classes} = [ $config->{loader}->classes ]; $config->{tables} = [ $config->{loader}->tables ]; - warn( 'Loaded tables: ' . join ',', @{ $config->{tables} } ) + + my @table_class = map { $_ . " => " . $config->{loader}->_table2class($_) } @{ $config->{tables} }; + warn( 'Loaded tables to classes: ' . join ', ', @table_class ) if $namespace->debug; }