X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultClass%2FHashRefInflator.pm;h=3df5f201834ee743a50d66e2d0db922889e7cb33;hb=8273e845426f0187b4ad6c4a1b42286fa09a648f;hp=ab7fbc7feb8ac81e6ff75cd18db9b094e1aa03b3;hpb=7f7f54cd3c38aa2fe9a3687daa3ad296b6abe7e4;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/ResultClass/HashRefInflator.pm b/lib/DBIx/Class/ResultClass/HashRefInflator.pm index ab7fbc7..3df5f20 100644 --- a/lib/DBIx/Class/ResultClass/HashRefInflator.pm +++ b/lib/DBIx/Class/ResultClass/HashRefInflator.pm @@ -28,7 +28,7 @@ DBIx::Class::ResultClass::HashRefInflator - Get raw hashrefs from a resultset =head1 DESCRIPTION -DBIx::Class is faster than older ORMs like Class::DBI but it still isn't +DBIx::Class is faster than older ORMs like Class::DBI but it still isn't designed primarily for speed. Sometimes you need to quickly retrieve the data from a massive resultset, while skipping the creation of fancy row objects. Specifying this class as a C for a resultset will change C<< $rs->next >> @@ -128,9 +128,9 @@ following: my $cds = $artist->cds; $cds->result_class('DBIx::Class::ResultClass::HashRefInflator'); - my $first = $cds->first; + my $first = $cds->first; -C<$first> will B be a hashref, it will be a normal CD row since +C<$first> will B be a hashref, it will be a normal CD row since HashRefInflator only affects resultsets at inflation time, and prefetch causes relations to be inflated when the master C<$artist> row is inflated.