Permalink
Browse files

PK is not hydrated after create(). Closes #173

  • Loading branch information...
WanWizard committed Sep 6, 2012
1 parent a960f43 commit 42a37ce5d639bc6485b907764280dca3285a2bf9
Showing with 1 addition and 4 deletions.
  1. +1 −4 classes/model.php
View
@@ -1083,10 +1083,7 @@ protected function create()
if (count($primary_key) == 1 and $id !== false)
{
$pk = reset($primary_key);
if ($this->{$pk} === null)
{
$this->{$pk} = $id;
}
$this->{$pk} = $id;
}
// update the original properties on creation and cache object for future retrieval in this request

0 comments on commit 42a37ce

Please sign in to comment.