Using DBIx::Class as a parent causes Class::Accessor::Grouped to be
authorMichael G Schwern <mschwern@cpan.org>
Fri, 24 Oct 2008 02:54:25 +0000 (02:54 +0000)
committerMichael G Schwern <mschwern@cpan.org>
Fri, 24 Oct 2008 02:54:25 +0000 (02:54 +0000)
commit5e85c6715197a71ec9bd016992e4e05ae90b14ce
tree649fac0a002fbc1872ab7a498e0a632043206c98
parent3cf3fa9f2da5cf64411e375427742616af32e7d3
Using DBIx::Class as a parent causes Class::Accessor::Grouped to be
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.
lib/DBIx/Class/CDBICompat/ColumnCase.pm
lib/DBIx/Class/CDBICompat/ImaDBI.pm
lib/DBIx/Class/CDBICompat/TempColumns.pm
t/cdbi-t/15-accessor.t