[Dbix-class] Proper way to suppress die from DBIx::Class

Sean Quinlan spq.easy at gmail.com
Fri Oct 17 13:06:19 GMT 2014


Aha! Thank you!

On Thu, Oct 16, 2014 at 9:00 PM, Charlie Garrison <garrison at zeta.org.au>
wrote:

> 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
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20141017/8706433a/attachment.htm>


More information about the DBIx-Class mailing list