NAME
Maypole::Model::CDBI::Plain - Class::DBI model without ::Loader
SYNOPSIS
package Foo;
use base 'Maypole::Application';
use Foo::SomeTable;
use Foo::Other::Table;
Foo->config->{model_class} = "Maypole::Model::CDBI::Plain";
Foo->setup([qw/ Foo::SomeTable Foo::Other::Table /]);
DESCRIPTION
This module allows you to use Maypole with previously set-up Class::DBI
classes; simply call setup
with a list reference of the classes you're going to use, and Maypole will work out the tables and set up the inheritance relationships as normal.
METHODS
- setup_database
- class_of