[Dbix-class] Creating custom ResultSet Class.

Oleg Pronin syber.rus at gmail.com
Thu Apr 26 23:09:08 GMT 2007


Some sources can be added at runtime. At least DBIC is designed to do this.
I would like all sources to use my resultset by default.


2007/4/26, Marc Mims <marc at questright.com>:
>
> [oops! failed to do a reply to list --- resending]
> * Oleg Pronin <syber.rus at gmail.com> [070426 11:30]:
> > Is there a good way to set my custom resultset to all registered result
> > sources?
>
> I'll take a crack at it and somebody who knows better can correct me.
> ;-)
>
> $schema->source($_)->resultset_class('My::ResultSet::Class')
>   for $schema->sources;
>
>        -Marc
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive:
> http://www.mail-archive.com/dbix-class@lists.rawmode.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070427/f57=
68827/attachment.htm


More information about the Dbix-class mailing list