wreis / DBIx-Class-EncodedColumn

Automatically encode columns
https://metacpan.org/module/DBIx::Class::EncodedColumn
Other
2 stars 7 forks source link

components loading order can affect the result #2

Closed aanoaa closed 9 years ago

aanoaa commented 11 years ago

hi. I usually using result_base_class for prevent loading components multiple times.

package App::Schema::Parent;
use Moose;
use MooseX::NonMoose;
use namespace::autoclean;

extends 'DBIx::Class::Core';

__PACKAGE__->load_components(qw/
    InflateColumn::DateTime
    TimeStamp
    EncodedColumn
/);

__PACKAGE__->meta->make_immutable;

1;

above, EncodedColumn is display after TimeStamp.

if derived class extends this class, EncodedColumn is not working. here is my test file. https://dl.dropboxusercontent.com/u/16719710/tmp/oops.tar.gz execute for just type perl test.pl

if switching EncodedColumn and TimeStamp position, it works.

I don't know this issue associate with this modules. maybe this is more associate with DBIx::Class core.

thanks.

wreis commented 11 years ago

Thanks for the report and sorry for the delay. Will check it out.

wreis commented 9 years ago

Fixed in 1f0c37d64c.