I'm using DBIx::Class with Catalyst. I have implemented a Model that acts as an aggregator for multiple Models based on the same DBIx::Class::Schema. Each query to the Model is executed on all of the children Models, and a new resultset that represents the data from all of them is returned. I would like to add a new column to that resultset indicating which child Model, that row cam from.
Is there an easy way to add new column to each row of a resultset for which I assign the data? I was thinking of using Class::Accessor to just add another mutator to each DBIx::Class, and then set the data as it passes through my Model, but this seems 'hackish' ... not like my approach so far isn't but this seems even more so, plus it's crossing the lines of adding 'Model' logic to the DBIx::Class. -- James R. Leu [EMAIL PROTECTED]
pgpacffYPWT23.pgp
Description: PGP signature
_______________________________________________ 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/