added search_related_rs at resultset
Wallace Reis [Wed, 26 Mar 2008 22:23:39 +0000 (22:23 +0000)]
lib/DBIx/Class/ResultSet.pm

index 011d7da..3f2ee30 100644 (file)
@@ -496,6 +496,17 @@ sub search_related {
   return shift->related_resultset(shift)->search(@_);
 }
 
+=head2 search_related_rs
+
+This method works exactly the same as search_related, except that
+it garauntees a restultset, even in list context.
+
+=cut
+
+sub search_related_rs {
+  return shift->related_resultset(shift)->search_rs(@_);
+}
+
 =head2 cursor
 
 =over 4