[Bast-commits] r7038 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual
dandv at dev.catalyst.perl.org
dandv at dev.catalyst.perl.org
Mon Jul 13 12:15:13 GMT 2009
Author: dandv
Date: 2009-07-13 12:15:13 +0000 (Mon, 13 Jul 2009)
New Revision: 7038
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod
Log:
Fixed has_many example in Intro.pod
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod 2009-07-13 12:06:08 UTC (rev 7037)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod 2009-07-13 12:15:13 UTC (rev 7038)
@@ -173,7 +173,8 @@
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<DBIx::Class::Relationship> for more information about the various types of
available relationships and how you can design your own.
More information about the Bast-commits
mailing list