From: Wallace Reis Date: Wed, 26 Mar 2008 22:23:39 +0000 (+0000) Subject: added search_related_rs at resultset X-Git-Tag: v0.08240~496 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ec379708edd4c6ce47389b6c11b3afb78f4c5c00;p=dbsrgits%2FDBIx-Class.git added search_related_rs at resultset --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 011d7da..3f2ee30 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -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