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

Lasse Makholm lasse at unity3d.com
Fri Oct 17 22:08:05 GMT 2014


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.easy at gmail.com> wrote:

> 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
>>
>
>
> _______________________________________________
> 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/20141018/ba789650/attachment.htm>


More information about the DBIx-Class mailing list