Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to add TO_JSON base method for DBIC Result in Catalyst

by Solo (Deacon)
on Aug 20, 2011 at 17:10 UTC ( [id://921424]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://921424]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-28 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found