[Dbix-class] custom resultsource and subclasses

Louis Erickson lerickson at rdwarf.net
Wed May 28 18:32:40 GMT 2014


You mean like DBIx::Class::DynamicSubclass?  The only odd part is the union of sql select, which sounds like a view to me.

On May 28, 2014, at 4:51 AM, Mitchell Elutovich <melutovich at gmail.com> wrote:

> I have the need for a custom resultsource based on the SQL select of a union of multiple tables; I would like to have a different subclass associated with each table and I would have a column which indicated which subclass to choice.  In a normal result set I know that there is an inflate_result method called which I can hook into to have the results blessed correctly; does the inflate_result or equivalent get used for a custom resultsource ?
> _______________________________________________
> 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/20140528/cb99e288/attachment.htm>


More information about the DBIx-Class mailing list