Additionally, custom resultset classes should be found and loaded automagically if you use_namespace => 1 in the loader options (the default these days, I believe)...
See also: http://search.cpan.org/~ribasushi/DBIx-Class-0.082801/lib/DBIx/Class/Schema.pm#load_namespaces /L On Fri, Oct 17, 2014 at 3:06 PM, Sean Quinlan <spq.e...@gmail.com> wrote: > Aha! Thank you! > > On Thu, Oct 16, 2014 at 9:00 PM, Charlie Garrison <garri...@zeta.org.au> > wrote: > >> Good morning, >> >> On 16/10/14 at 2:32 PM -0400, Sean Quinlan <spq.e...@gmail.com> wrote: >> >> >I did not. I knew I could do that for every specific resultset (lots of >> >examples of that). How do I override the base class for all resultsets in >> >one place. Just create my own class with: >> > use base 'DBIx::Class::Core'; >> >> Yes. >> >> >And change all the Result classes to base from mine? But that then >> >breaks dbicdump, which I would also like to avoid. Or is there a better >> way >> >to do it that I missed in the docs? >> >> Check loader_options for DBIx::Class::Schema::Loader (which dbicdump >> uses), eg: >> >> result_base_class => 'YourResultBase' >> >> >> Charlie >> >> -- >> Charlie Garrison <garri...@zeta.org.au> >> github.com/cngarrison metacpan.org/author/CNG >> >> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org >> http://www.ietf.org/rfc/rfc1855.txt >> >> >> _______________________________________________ >> 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/dbix-class@lists.scsys.co.uk >> > > > _______________________________________________ > 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/dbix-class@lists.scsys.co.uk >
_______________________________________________ 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/dbix-class@lists.scsys.co.uk