From: Jesse Sheidlower Date: Wed, 21 Jun 2006 13:00:15 +0000 (+0000) Subject: docced where attribute in resultset X-Git-Tag: v0.07002~75^2~96 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4209f49a;p=dbsrgits%2FDBIx-Class.git docced where attribute in resultset --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 6b57676..f9f2796 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1993,6 +1993,20 @@ done. Set to 1 to group by all columns. +=head2 where + +=over 4 + +Adds to the WHERE clause. + + # only return rows WHERE deleted IS NULL for all searches + __PACKAGE__->resultset_attributes({ where => { deleted => undef } }); ) + +Can be overridden by passing C<{ where => undef }> as an attribute +to a resulset. + +=back + =head2 cache Set to 1 to cache search results. This prevents extra SQL queries if you