Update find docs re: key attribute
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSet.pm
index 954daa3..d4f8fab 100644 (file)
@@ -287,6 +287,11 @@ constraint. For example:
     { key => 'artist_title' }
   );
 
+If no C<key> is specified, it searches on all unique constraints defined on the
+source, including the primary key.
+
+If the C<key> is specified as C<primary>, it searches only on the primary key.
+
 See also L</find_or_create> and L</update_or_create>.
 
 =cut