<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>You mean like&nbsp;DBIx::Class::DynamicSubclass? &nbsp;The only odd part is the union of sql select, which sounds like a view to me.</div><br><div><div>On May 28, 2014, at 4:51 AM, Mitchell Elutovich &lt;<a href="mailto:melutovich@gmail.com">melutovich@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">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. &nbsp;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 ?</span><br>
</div>
_______________________________________________<br>List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class</a><br>IRC: <a href="http://irc.perl.org">irc.perl.org</a>#dbix-class<br>SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/">http://dev.catalyst.perl.org/repos/bast/DBIx-Class/</a><br>Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk">http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk</a></blockquote></div><br></body></html>