[Dbix-class] custom resultsource and subclasses

Hartmaier Alexander alexander.hartmaier at t-systems.at
Wed May 28 12:56:30 GMT 2014


On 2014-05-28 13:51, Mitchell Elutovich 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 ?
HI Mitchell,
please tell us what you try to achieve and why you think that a custom result source is the right solution.



_______________________________________________
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



*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20140528/f5129c3e/attachment.htm>


More information about the DBIx-Class mailing list