http://qs321.pair.com?node_id=921424


in reply to How to add TO_JSON base method for DBIC Result in Catalyst

Castaway advised on irc.perl.org #catalyst this was a DBIx::Class issue with Base being in the same namespace/folder as the other result classes. The solution is to move the base class up or out.

package MyApp::Schema::DB::ResultBase; extends 'DBIx::Class::Core'; ... package MyApp::Schema::DB::Result::Table; extends 'MyApp::Schema::DB::ResultBase'; ...

Thanks!

--Solo

--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.