On Sun, Sep 01, 2013 at 12:12:39PM -0700, Bill Moseley wrote:
> I need some help debugging this.
> 
> In Catalyst::Model::DBIC::Schema::Types there's this:
> 
> subtype LoadedClass,
>     as ClassName;
> 
> coerce LoadedClass,
>     from Str, # N.B. deliberate paranoia against $_ clobbering below
>     *via { my $classname = $_; Class::MOP::load_class($classname);
> $classname };*
> 
> 
> And this attribute is created:
> 
> has pool_type => (is => 'ro', isa => LoadedClass);

The attribute definition here needs "coerce => 1".

-doy

Reply via email to