On Fri, May 16, 2008 at 12:36 PM, Mitch Jackson <[EMAIL PROTECTED]> wrote: > J, > > My solution was better suited for the DBIx::Class list I suppose, but > I posed the question here to see if there was already some sort of > Catalyst solution I had overlooked... a view for example. > > I took a look at that part of the cookbook before, but it seems to > only apply if you're pulling one table row, not a record set. > > Thanks for the advice... > > /Mitch
The hash ref inflator is for working with an entire result set, not a specific row. It honestly wouldn't make sense with a single row, because if you get a single row the object is already created... You'd have to read the source of DBIx::Class::ResultSet (specifically sub next) to see how it fully works, but it's (in rough theory) mostly the same as your xml method - except using more of the DBIC API. But yes, this thread should move to the dbic list. -J _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
