From: Jess Robinson Date: Wed, 15 Nov 2006 14:26:47 +0000 (+0000) Subject: Fix foreign/self example X-Git-Tag: v0.07003~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=826daaae6a1e45f22243a50989e0492c02a7f295;p=dbsrgits%2FDBIx-Class.git Fix foreign/self example --- diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 6a5a046..3b381a0 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -125,7 +125,7 @@ The above belongs_to relationship could also have been specified as, My::DBIC::Schema::Book->belongs_to( author, 'My::DBIC::Schema::Author', - { 'self.author' => 'foreign.author' } ); + { 'foreign.author' => 'self.author' } ); Creates a relationship where the calling class stores the foreign class's primary key in one (or more) of its columns. This relationship defaults to