This commit is contained in:
2021-03-04 15:45:15 +08:00
parent ea7baddd31
commit 6a0c732fef
+1 -1
View File
@@ -1031,7 +1031,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
$model = objectPool($className, function () use ($className) {
return new $className();
});
$model->setOldAttributes($data);
$model->_annotations = $data;
$model->refresh();
return $model;
}