Permalink
Browse files

return ID from typemap

  • Loading branch information...
1 parent 850db6f commit 62419a42d05da219e548b7381f0945c79e25532a @moritz committed Sep 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Soonish/Table.pm
@@ -68,6 +68,7 @@ role Soonish::Table {
method typemap($obj) {
if $obj ~~ Soonish::Table {
$obj.id ?? $obj !! $obj.insert;
+ $obj.id;
}
else {
$obj;

0 comments on commit 62419a4

Please sign in to comment.