CatalystX::Usul::Model::Schema - Base class for database models
Describes v0.17.$Rev: 1 $
package YourApp::Model::YourModel; use CatalystX::Usul::Moose; extends q(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 two classes it inherits from
Adds the attributes from CatalystX::Usul::Model to the ones from Catalyst::Model::DBIC::Schema
Copy of the one in CatalsytX::Usul::Model which is much more useful than the pointless one we are overriding in Catalyst::Model::DBIC::Schema
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>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 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
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.