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! |
---|
In reply to Re^2: Add a method to a ResultSet Class in DBIx::Class?
by jasonk
in thread Add a method to a ResultSet Class in DBIx::Class?
by matija
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |