Subject: | connect_info being set in BUILD, but it is a read-only attribute |
In BUILD there is this bit that my code relies on working:
if( !$self->connect_info ) {
if($schema_class->storage && $schema_class->storage->connect_info) {
$self->connect_info($schema_class->storage->connect_info);
Yet, connect_info is set as ready-only:
has connect_info => (is => 'ro', isa => ConnectInfo, coerce => 1);
So I get this error when I start my catalyst app:
Couldn't instantiate component "component::ui::Pub::Model::WDB", "Cannot
assign a value to a read-only accessor at
/vcm/home/lib/site_perl/Catalyst/Model/DBIC/Schema.pm line 467
The most obvious fix is to make connect_info read-write.