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


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...

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 { ... }