From: Aran Deltac Date: Tue, 9 May 2006 22:17:38 +0000 (+0000) Subject: Fixes to _rs related docs. X-Git-Tag: v0.07002~75^2~205 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=60a8fb957a697c1ff60ab81fac452b691cd4e3b1;hp=5b89a7688c79c6b6109ee8ec5d43ee680bd8c22c;p=dbsrgits%2FDBIx-Class.git Fixes to _rs related docs. --- diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 9e6d77d..b5d6932 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -141,13 +141,13 @@ foreign class store the calling class's primary key in one (or more) of its columns. You should pass the name of the column in the foreign class as the $cond argument, or specify a complete join condition. -Three methods are created when you create a has_many relationship. The first -method is the expected accessor method. The second is almost exactly the same -as the accessor method but "_rs" is added to the end of the method name. This -method works just like the normal accessor, except that it returns a resultset -no matter what, even in list context. The third method, named -C<< add_to_ >>, will also be added to your Row items, this allows -you to insert new related items, using the same mechanism as in +Three methods are created when you create a has_many relationship. The first +method is the expected accessor method. The second is almost exactly the same +as the accessor method but "_rs" is added to the end of the method name. This +method works just like the normal accessor, except that it returns a resultset +no matter what, even in list context. The third method, named +C<< add_to_ >>, will also be added to your Row items, this allows +you to insert new related items, using the same mechanism as in L. If you delete an object in a class with a C relationship, all diff --git a/lib/DBIx/Class/Relationship/Base.pm b/lib/DBIx/Class/Relationship/Base.pm index 9b1bde5..bfe63b3 100644 --- a/lib/DBIx/Class/Relationship/Base.pm +++ b/lib/DBIx/Class/Relationship/Base.pm @@ -192,8 +192,8 @@ sub search_related { ( $objects_rs ) = $rs->search_related_rs('relname', $cond, $attrs); -This method works exactly the same as search_related_rs, except that -it garauntees that it will return a restultset even in list context. +This method works exactly the same as search_related, except that +it garauntees a restultset, even in list context. =cut diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index b8e0668..7d18853 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -211,7 +211,7 @@ sub search { =back This method does the same exact thing as search() except it will -always return a resultset even in list context. +always return a resultset, even in list context. =cut