Row::update encapsulates this when passed a hashref; no point in duplication
Daniel Westermann-Clark [Wed, 10 May 2006 15:02:14 +0000 (15:02 +0000)]
lib/DBIx/Class/ResultSet.pm

index 7d18853..db58023 100644 (file)
@@ -1259,8 +1259,7 @@ sub update_or_create {
 
   my $row = $self->find($hash, $attrs);
   if (defined $row) {
-    $row->set_columns($hash);
-    $row->update;
+    $row->update($hash);
     return $row;
   }