1 package # hide from PAUSE
2 DBIx::Class::Componentised;
7 use base 'Class::C3::Componentised';
8 use Carp::Clan qw/^DBIx::Class|^Class::C3::Componentised/;
11 # this warns of subtle bugs introduced by UTF8Columns hacky handling of store_column
16 my @present_components = (@{mro::get_linear_isa ($target)||[]});
19 for my $comp (reverse @_) {
21 if ($comp->isa ('DBIx::Class::UTF8Columns') ) {
25 for (@present_components) {
26 my $cref = $_->can ('store_column')
28 push @broken, $_ if B::svref_2object($cref)->STASH->NAME ne 'DBIx::Class::Row';
31 carp "Incorrect loading order of $comp by ${target} will affect other components overriding store_column ("
32 . join (', ', @broken)
33 .'). Refer to the documentation of DBIx::Class::UTF8Columns for more info'
37 unshift @present_components, $comp;
40 $class->next::method($target, @_);