This queue is for tickets about the Catalyst-Model-DBIC-Schema CPAN distribution.

Report information
The Basics
Id:
48084
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
bluefeet [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.25
Fixed in:
(no value)



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.
Fixed, by you, I forget when, just cleaning out the RT queue :)


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.