Fix foreign/self example
Jess Robinson [Wed, 15 Nov 2006 14:26:47 +0000 (14:26 +0000)]
lib/DBIx/Class/Relationship.pm

index 6a5a046..3b381a0 100644 (file)
@@ -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