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