X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FModel%2FCDBI.pm;h=b4208e1029d577ef49ea8f7bf3390efa450959da;hb=0dad0b61598776d7eab84a8c9f25bd3d85bc1198;hp=bba1c5c587868e9a4be99e8423faa1c5a2554b79;hpb=52d254200d32b47402461d325c2836c35af99201;p=maypole.git diff --git a/lib/Maypole/Model/CDBI.pm b/lib/Maypole/Model/CDBI.pm index bba1c5c..b4208e1 100644 --- a/lib/Maypole/Model/CDBI.pm +++ b/lib/Maypole/Model/CDBI.pm @@ -51,14 +51,26 @@ Surprisingly, this command causes a database record to be forever lost. =item search +The search action + +=back + =head1 Helper Methods +=over + =item order =item stringify_column =item do_pager +=item related_class + +Given an accessor name as a method, this function returns the class this accessor returns. + +=back + =cut sub related { @@ -211,6 +223,8 @@ sub setup_database { ); $config->{classes} = [ $config->{loader}->classes ]; $config->{tables} = [ $config->{loader}->tables ]; + warn( 'Loaded tables: ' . join ',', @{ $config->{tables} } ) + if $namespace->debug; } sub class_of { @@ -219,4 +233,3 @@ sub class_of { } 1; -