I just found an easier solution. Instead of:
__PACKAGE__->table_class('My::Schema::ResultSource::MyTable');
I override the table_class accessor:
sub table_class { 'My::Schema::ResultSource::MyTable' }
That way when sub table is called, the table_class is already defined.
- Lyle
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]