Simon Flack > Maypole-2.09 > Maypole::Model::CDBI::Plain

Download:
Maypole-2.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  9
Open  5
View Bugs
Report a bug
Source   Latest Release: Maypole-2.13

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("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

See Maypole::Model::Base