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