[Catalyst] CatalystX::CRUD Storage Error

Peter Karman peter at peknet.com
Fri Jul 17 14:22:24 GMT 2009


Eden Cardim wrote on 07/17/2009 06:51 AM:
> On Thu, Jul 16, 2009 at 11:36 PM, Peter Karman<peter at peknet.com> wrote:
>> There really is no method called 'storage' in DBIx::Class::ResultSet, so at
>> least the error message is telling the truth.
> 
> - $self->app_class->model( $self->model_name )->storage->sqlt_type
> +$self->app_class->model( $self->model_name )->result_source->storage->sqlt_type
> 

that would be true if $self->model_name returned the moniker name of a 
particular ResultSet. But it shouldn't. It should return the 
(MyApp-prefix-remove) name of the Catalyst::Model::DBIC::Schema class.

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com
gpg key: 37D2 DAA6 3A13 D415 4295  3A69 448F E556 374A 34D9



More information about the Catalyst mailing list