update row object after storage has run the insert statement. So the row contains...
Johannes Plunien [Tue, 6 Nov 2007 21:56:44 +0000 (21:56 +0000)]
lib/DBIx/Class/Row.pm

index 6ac92bf..b85d006 100644 (file)
@@ -207,7 +207,8 @@ sub insert {
     }
   }
 
-  $source->storage->insert($source, { $self->get_columns });
+  my $updated_cols = $source->storage->insert($source, { $self->get_columns });
+  $self->set_columns($updated_cols);
 
   ## PK::Auto
   my @auto_pri = grep {