[Dbix-class] Q: prefetch has_many relation

Benjamin Hitz hitz at genome.stanford.edu
Fri Apr 9 18:54:16 GMT 2010


>>
>> That's all nice, but see what does $rs->search_related('queues')->all
>> returns,
>> you'll be unpleasantly surprised :) Also note that it says "at top
>> level". The
>> warning is genuine, multiple has_many prefetch has been broken  
>> forever,
>> there
>> is a 95% complete fix for that, which I really hope to materialize
>> before the
>> end of the month. ETOOLITTLETIME.
>>
>
> Ah yes, I see what you mean about the related resultsets.  Thanks  
> for explaining.
>

Sorry... I don't see it.  What exactly should I be comparing between  
the two result sets?
(one with {prefetch => [a,b]} and the other with {prefetch => [a,b]} - 
 > search_related(a)?

Ben


--
Ben Hitz
Senior Scientific Programmer ** Saccharomyces Genome Database ** GO  
Consortium
Stanford University ** hitz at genome.stanford.edu






More information about the DBIx-Class mailing list