Subject: | Catalyst::Authentication::Store::DBIx::Class::User::can fails when called as class method |
The Catalyst::Authentication::Store::DBIx::Class::User::can fails when called as a class method since it internally uses the _user attribute.
use strict;
use Catalyst::Authentication::Store::DBIx::Class::User;
warn Catalyst::Authentication::Store::DBIx::Class::User->can('_skip_namespace_frames');
Can't use string ("Catalyst::Authentication::Store:"...) as a HASH ref while "strict refs" in use at accessor Catalyst::Authentication::Store::DBIx::Class::User::_user (defined at /home/danielr/perl5/5.16.3/lib/perl5/Catalyst/Authentication/Store/DBIx/Class/User.pm line 12) line 5.
I get into this situation when I had missing column in my user table.
The SQL error was propagated via DBIx::Class layer and DBIx::Class::Carp while examining the stack up called Catalyst::Authentication::Store::DBIx::Class::User->can('_skip_namespace_frames')
The 'can' call failed and covered the original message with the rather cryptical message above.
~
~