Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by matija (Priest)
on Jan 09, 2008 at 12:41 UTC ( #661332=note: print w/ replies, xml ) Need Help??


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

No, I should be sorry, because I forgot to say in my original submission that I did look at that:

DB<5> x ref $schema->resultset('ThreadedDB::Article') 0 'DBIx::Class::ResultSet'

I'm not comfortable adding my methods to that...


Comment on Re^4: Add a method to a ResultSet Class in DBIx::Class?
Download Code
Replies are listed 'Best First'.
Re^5: Add a method to a ResultSet Class in DBIx::Class?
by Corion (Pope) on Jan 09, 2008 at 14:12 UTC

    This reminds me what I did, for a short time. In the end, I found my approach unworkable due to other reasons:

    ... $schema->source('ThreadedDB::Article')->resultset_class('ThreadedDB::A +rticle::ResultSet'); ... package ThreadedDB::Article::ResultSet; use parent 'DBIx::Class::ResultSet'; sub frobnitz { ... }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-07-28 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls