
CatalystX::Usul::Model::Schema - Base class for database models

0.7.$Revision: 1181 $

package YourApp::Model::YourModel;
use parent qw(CatalystX::Usul::Model::Schema);
__PACKAGE__->config( database => q(library),
schema_class => q(YourApp::Schema::YourSchema) );
sub COMPONENT {
my ($class, $app, $config) = @_;
$config->{database } ||= $class->config->{database};
$config->{connect_info} ||=
$class->get_connect_info( $app->config, $config->{database} );
return $class->next::method( $app, $config );
}

Aggregates the methods from the three classes it inherits from

Copy of the one in CatalsytX::Usul::Model which is much more useful than the pointless one we are overridding in Catalyst::Model::DBIC::Schema
Adds the attributes from CatalystX::Usul::Model to the ones from Catalyst::Model::DBIC::Schema

None

None


There are no known incompatibilities in this module

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Peter Flanigan, <Support at RoxSoft.co.uk>

Copyright (c) 2008 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE