Fixed typo in Relationship POD
Matt S Trout [Sat, 15 Apr 2006 21:55:47 +0000 (21:55 +0000)]
lib/DBIx/Class/Relationship.pm

index 070a3a4..44ed65b 100644 (file)
@@ -31,7 +31,7 @@ DBIx::Class::Relationship - Inter-table relationships
 
   $schema->resultset('Actor')->roles();
   $schema->resultset('Role')->search_related('actors', { Name => 'Fred' });
-  $schema->resultset('ActorRole')->add_to_role({ Name => 'Sherlock Holmes'});
+  $schema->resultset('ActorRole')->add_to_roles({ Name => 'Sherlock Holmes'});
 
 See L<DBIx::Class::Manual::Cookbook> for more.