[Dbix-class] Re: Prefetch and join on different tables

Peter Rabbitson rabbit+dbic at rabbit.us
Tue Jan 22 15:30:49 GMT 2013


On Tue, Jan 22, 2013 at 11:23:42AM -0300, Paula wrote:
> I tried this, and in this case I get:
> 
> [error] DBIx::Class::Row::get_column(): No such column 'h1'
> 
> so in this case it is not executing prefetch

You are missing something simple, yet non-obvious. Please supply the 
*entire* search() call, and the *entire* definition of the Result clases 
involved (the stuff that has ->table, ->add_columns, etc).

Then we will be able to precisely explain where your expectations do not 
meet with the reality of how DBIC operates (and perhaps you will even 
help us fix the docs to make it clearer).

Cheers



More information about the DBIx-Class mailing list