our $VERSION = '0.22';
use base qw/Catalyst::Model Class::Accessor::Fast Class::Data::Accessor/;
-use NEXT;
+use MRO::Compat;
+use mro 'c3';
use UNIVERSAL::require;
use Carp;
use Data::Dumper;
=back
-Now you have a working Model, accessing your separate DBIC Schema. Which can
+Now you have a working Model which accesses your separate DBIC Schema. This can
be used/accessed in the normal Catalyst manner, via $c->model():
my $actor = $c->model('FilmDB::Actor')->find(1);
# using the generated class directly
my $rs = $c->model('FilmDB::Actor');
+In order to add methods to a DBIC resultset, you cannot simply add them to
+the source (row, table) definition class; you must define a separate custom
+resultset class. See L<DBIx::Class::Manual::Cookbook/"Predefined searches">
+for more info.
+
=head1 CONFIG PARAMETERS
=over 4
=cut
sub new {
- my $self = shift->NEXT::new(@_);
+ my $self = shift->next::method(@_);
my $class = ref($self);
my $model_name = $class;