[Dbix-class] Proper way to suppress die from DBIx::Class
Charlie Garrison
garrison at zeta.org.au
Fri Oct 17 01:00:50 GMT 2014
Good morning,
On 16/10/14 at 2:32 PM -0400, Sean Quinlan <spq.easy at 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 <garrison at 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
More information about the DBIx-Class
mailing list