X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FJoining.pod;h=4bf3331c52c70a43df6d5c88cd35dcfebce6dd44;hp=0cf86bd5bebae764a7a363821a495462e5bc8b94;hb=48580715af3072905f2c71dc27e7f70f21a11338;hpb=7d8f64b992d1de9fd3eef9f1d5729ca74153922f diff --git a/lib/DBIx/Class/Manual/Joining.pod b/lib/DBIx/Class/Manual/Joining.pod index 0cf86bd..4bf3331 100644 --- a/lib/DBIx/Class/Manual/Joining.pod +++ b/lib/DBIx/Class/Manual/Joining.pod @@ -113,7 +113,7 @@ relationships. =head2 Whole related objects -To fetch entire related objects, eg CDs and all Track data, use the +To fetch entire related objects, e.g. CDs and all Track data, use the 'prefetch' attribute: $schema->resultset('CD')->search( @@ -129,7 +129,7 @@ This will produce SQL similar to the following: SELECT cd.ID, cd.Title, cd.Year, tracks.id, tracks.Name, tracks.Artist FROM CD JOIN Tracks ON CD.ID = tracks.CDID WHERE cd.Title = 'Funky CD' ORDER BY 'tracks.id'; The syntax of 'prefetch' is the same as 'join' and implies the -joining, so no need to use both together. +joining, so there is no need to use both together. =head2 Subset of related fields @@ -232,7 +232,7 @@ Which is: To perform joins using relations of the tables you are joining to, use a hashref to indicate the join depth. This can theoretically go as -deep as you like (warning, contrived examples!): +deep as you like (warning: contrived examples!): join => { room => { table => 'leg' } }