On 16 Dec 2008, at 13:43, Adam Witney wrote:
But can HashRefInflator be used with a 'search' instead of a 'find'
method? (I tried and it seemed to return different results). I need
to pull the data out by a non-primary and non-unique field.
Remember that a search returns a resultset, so:-
my $rs = $schema->resultset('Whatever')->search({black => 'white'});
$rs->result_class('DBIx::Class::ResultClass::HashRefInflator');
while (my $hash = $rs->next) {
# smoke your hash
}
--
[ Nigel Metheringham [email protected] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
_______________________________________________
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/[email protected]