From: Daniel Westermann-Clark Date: Fri, 26 May 2006 04:35:59 +0000 (+0000) Subject: Minor update to find_or_create docs re: how it searches X-Git-Tag: v0.07002~75^2~155^2~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bee6d1919f199cba962576e1fce3fca80f677d3e;p=dbsrgits%2FDBIx-Class.git Minor update to find_or_create docs re: how it searches --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 0b9d84f..c2bde27 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1314,8 +1314,8 @@ sub create { $class->find_or_create({ key => $val, ... }); -Searches for a record matching the search condition; if it doesn't find one, -creates one and returns that instead. +Tries to find a record based on its primary key or unique constraint; if none +is found, creates one and returns that instead. my $cd = $schema->resultset('CD')->find_or_create({ cdid => 5,