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();
$result = $this->addError($this->getLastError());
} else {
$result = static::populate($this->_attributes);
$trance->commit();
$result = $this->refresh();
$this->afterSave($attributes, $param);
}
return $result;