introduced to the hierarchy too early and thus CDBICompat::AccessorMapping's
own mk_group_accessor() not get called.
The only reason we're inheriting from DBIx::Class is to get mk_classdata().
Get it from Class::Data::Inheritable instead. mk_classdata() should be
moved out of DBIx::Class into a role to avoid this problem.
use strict;
use warnings;
-use base qw/DBIx::Class/;
-
sub _register_column_group {
my ($class, $group, @cols) = @_;
return $class->next::method($group => map lc, @cols);
use DBIx::ContextualFetch;
use Sub::Name ();
-use base qw/DBIx::Class/;
+use base qw(Class::Data::Inheritable);
__PACKAGE__->mk_classdata('sql_transformer_class' =>
'DBIx::Class::CDBICompat::SQLTransformer');
use strict;
use warnings;
-use base qw/DBIx::Class/;
+use base qw/Class::Data::Inheritable/;
use Carp;
return $col;
}
-# This is a class with accessor_name_for() but no corresponding mutatori_name_for()
+# This is a class with accessor_name_for() but no corresponding mutator_name_for()
sub Director::accessor_name_for {
my($class, $col) = @_;
return "nutty_as_a_fruitcake" if lc $col eq "isinsane";