the right order.
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@66
48953598-375a-da11-a14b-
00016c27c3ee
$class->$method($r);
}
+sub display_columns {
+ sort shift->columns;
+}
+
=head1 NAME
Maypole::Model::Base - Base class for model classes
=head2 columns
-This is a list of the columns in a table.
+This is a list of all the columns in a table. You may also override
+C<display_columns>, which is the list of columns you want to view, in
+the right order.
=head2 table
if ($class) {
$args{classmetadata} = {
name => $class,
- columns => [ $class->columns ],
+ columns => [ $class->display_columns ],
colnames => { $class->column_names },
related_accessors => [ $class->related($r) ],
moniker => $class->moniker,