[Dbix-class] ResultSet->new() ignores custom result_class [patch + tests]

Matt S Trout dbix-class at trout.me.uk
Fri Feb 8 07:47:51 GMT 2008


On Thu, Feb 07, 2008 at 08:11:47PM +0100, Emanuele Zeppieri wrote:
> Emanuele Zeppieri wrote:
> 
> >Could you please [...] 
> >clarify my doubts about the find() refactoring?
> 
> OK, sorry, after re-reading it's perfectly clear: you want 2 corrections 
> in find():
> 
> 1. make it pass $self->result_class to the search() attrs
> 
> _and_
> 
> 2. make it not call search() altogether when it just gets the 'key' attr.
> 
> Have I finally got it right? ;-)

Precisely, plus a doc patch to clarify the result_class attr versus the
accessor.

Nicely done on spotting the bug.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list