Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Add a method to a ResultSet Class in DBIx::Class?

by jasonk (Parson)
on Jan 09, 2008 at 18:25 UTC ( [id://661444]=note: print w/replies, xml ) Need Help??


in reply to Re: Add a method to a ResultSet Class in DBIx::Class?
in thread Add a method to a ResultSet Class in DBIx::Class?

I left out the use base statement, because DBIx::Class will hopefully set up @ISA correctly when it's creating the subclasses.

This only works automatically if you are using load_namespaces instead of load_classes from DBIx::Class::Schema, then they will be detected if they are named ThreadedDB::Result::Article and ThreadedDB::ResultSet::Article. If you aren't doing it this way, then the resultset_class will always be DBIx::Class::ResultSet, which you probably don't want to add things to...


We're not surrounded, we're in a target-rich environment!
  • Comment on Re^2: Add a method to a ResultSet Class in DBIx::Class?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found