(sorry, sent this to -devel list first in error)

Quick question:

my $rs = $schema->resultset( 'Artist' );
*$rs->result_class( 'DBIx::Class::ResultClass::HashRefInflator' );*
print "Artist before " . $rs->result_class . "\n";
$rs = $rs->search;
print "Artist after " . $rs->result_class . "\n";


Results in:

Artist before DBIx::Class::ResultClass::HashRefInflator
Artist after MyApp::Schema::Result::Artist



http://search.cpan.org/~ribasushi/DBIx-Class-0.08250/lib/DBIx/Class/ResultClass/HashRefInflator.pmsays:


   - Specify $rs->result_class on a specific resultset to affect only that
   resultset (and any chained off of it); or


I'm confused by that language.   Says "only that resultset" but also "and
any chained off it".    Should the result_class be "sticky" and applied to
new resultsets?




-- 
Bill Moseley
mose...@hank.org



-- 
Bill Moseley
mose...@hank.org
_______________________________________________
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

Reply via email to