[Dbix-class] Re: Best possible way to retrieve data using relationship

Wolfgang Kinkeldei wolfgang at kinkeldei.de
Thu Jan 27 11:11:27 GMT 2011


Hi again,

after some weeks I again visited the statement that confused me...

Am 31.12.2010 um 14:43 schrieb Peter Rabbitson:

> Wolfgang Kinkeldei wrote:
>> Hello <linuxsupport>,
>> looks like nobody answered before...
>> You will find an answer to your questions if you carefully read the documentation in
>> - DBIx::Class::Manual::Joining
>> - DBIx::Class::Manual::Cookbook
>> To give a short answer, you should never use "join" and "prefetch" in the same query, these options are mutually exclusive.
> 
> ^^ this is incorrect, which document claims this?

it is a quote from "DBIx::Class::ResultSet.pm" (which now turned out to be wrong):

<snip>
NOTE: If you specify a prefetch attribute, the join and select attributes will be ignored.
<snap>

sorry if I confused people on the list, but I still had this in my mind...



Best,

Wolfgang Kinkeldei

-- 

' /\_/\ ' .print[split??,"".(($/=q|Cms)+-03467:;<=|)=~tr!C-z -B! -z!)x
'( o.o )' .$/]->[hex]foreach split qr<>,qq+1ecd039ad65b025b8063475b+||
' > ^ < ' .q<!-- Wolfgang Kinkeldei - mailto:wolfgang at kinkeldei.de -->





More information about the DBIx-Class mailing list