This commit is contained in:
2020-09-11 17:14:47 +08:00
parent b9a017571f
commit e4bb04c678
+1 -1
View File
@@ -387,8 +387,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
$trance->rollback(); $trance->rollback();
$result = $this->addError($this->getLastError()); $result = $this->addError($this->getLastError());
} else { } else {
$result = static::populate($this->_attributes);
$trance->commit(); $trance->commit();
$result = $this->refresh();
$this->afterSave($attributes, $param); $this->afterSave($attributes, $param);
} }
return $result; return $result;