projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
838ef78
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Row.pm
b/lib/DBIx/Class/Row.pm
index
6ac92bf
..
b85d006
100644
(file)
--- a/
lib/DBIx/Class/Row.pm
+++ b/
lib/DBIx/Class/Row.pm
@@
-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 {