X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FJoining.pod;fp=lib%2FDBIx%2FClass%2FManual%2FJoining.pod;h=1b4aa5091f8cc43158cf5a1bd78002363cd13a6f;hb=5d22bb74b308ad7ca28cedd1ffcfd92c106b1e68;hp=5785349635b7b7372f91c67b901088341c62c61a;hpb=5c008e0fcb98b42197723e3d84342c95b97b6fc0;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Manual/Joining.pod b/lib/DBIx/Class/Manual/Joining.pod index 5785349..1b4aa50 100644 --- a/lib/DBIx/Class/Manual/Joining.pod +++ b/lib/DBIx/Class/Manual/Joining.pod @@ -51,7 +51,7 @@ For the CDs/Tracks example, that means writing, in C: And in C: - MySchema::Tracks->belongs_to('cd', 'MySchema::CD', 'CDID'); + MySchema::Tracks->refers_to('cd', 'MySchema::CD', 'CDID'); There are several other types of relationships, they are more comprehensively described in L. @@ -216,7 +216,7 @@ complete set of data we'll need to join to the Artist table too. In C: - MySchema::Tracks->belongs_to('artist', 'MySchema::Artist', 'ArtistID'); + MySchema::Tracks->refers_to('artist', 'MySchema::Artist', 'ArtistID'); The search: