From: Justin Guenther Date: Thu, 18 May 2006 22:34:31 +0000 (+0000) Subject: fixed an out-of-date limitation for has_many prefetch mentioned in Cookbook.pm X-Git-Tag: v0.07002~88 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=77d6b403a25fbc60eccf11e0466ab4ce5b255a4b;p=dbsrgits%2FDBIx-Class.git fixed an out-of-date limitation for has_many prefetch mentioned in Cookbook.pm --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 20efc71..808c443 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -313,9 +313,8 @@ L has now prefetched all matching data from the C table, so no additional SQL statements are executed. You now have a much more efficient query. -Note that as of L 0.04, C cannot be used with -C relationships. You will get an error along the lines of "No -accessor for prefetched ..." if you try. +Note that as of L 0.05999_01, C I be used with +C relationships. Also note that C should only be used when you know you will definitely use data from a related table. Pre-fetching related tables when you