On 2006-08-10 18:27:00 -0700, George Hartzell wrote:
> The section on prefetch in DBIx::Class::ResultSet doesn't mention
> has_many as a valid relationship for use with prefetch, but the
> section in the cookbook says that you _can_ (emphasis their's) since
> 0.05999_01.
> 
> In my flailing around, I can't make it work (I get complaints when
> calling $resultset->next about prefetching not being implemented for
> multi.
> 
> So, it sounds like the bug is in the Cookbook pod?

No, prefetch works for has_many relationships.  I don't know why it's
not listed in ResultSet; it's probably just an oversight.

Can you provide your relationship definitions, the search you're
trying, and the exact error message?

Thanks,

-- 
Daniel Westermann-Clark

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to