From: Dan Dascalescu Date: Mon, 13 Jul 2009 12:15:13 +0000 (+0000) Subject: Fixed has_many example in Intro.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4ae94ded4219c6cb4231f8db5ffe121faa114782;p=dbsrgits%2FDBIx-Class-Historic.git Fixed has_many example in Intro.pod --- diff --git a/lib/DBIx/Class/Manual/Intro.pod b/lib/DBIx/Class/Manual/Intro.pod index 928a565..dd37d0e 100644 --- a/lib/DBIx/Class/Manual/Intro.pod +++ b/lib/DBIx/Class/Manual/Intro.pod @@ -173,7 +173,8 @@ to describe a column which contains an ID of another Table, or C to make a predefined accessor for fetching objects that contain this Table's foreign key: - __PACKAGE__->has_many('albums', 'My::Schema::Result::Artist', 'album_id'); + # in My::Schema::Result::Artist + __PACKAGE__->has_many('albums', 'My::Schema::Result::Album', 'artist'); See L for more information about the various types of available relationships and how you can design your own.