[Dbix-class] prefetch with +select

Mark A. Stratman stratman at gmail.com
Mon Jun 7 17:19:45 GMT 2010


Is this a bug, or a necessary behavior? Or is there another way I should be doing a prefetch with +select?

$row = $rs->search({}, {
    '+select' => \'lower(something)',
    'prefetch' => "relationship",
})->first;

$row->relationship->first_column; # has the value of 'lower(something)'.

That is to say, every field in the "relationship" is shifted over by the +select.

Any insight would be appreciated.
Thanks,
- mark


More information about the DBIx-Class mailing list