This commit is contained in:
2023-04-10 17:34:19 +08:00
parent e002e4b4d0
commit fdf696624c
+1 -1
View File
@@ -247,7 +247,7 @@ class ActiveQuery extends Component implements ISqlBuilder
*/
public function populate($data): ModelInterface|array
{
$model = $this->modelClass::populate($data);
$model = $this->modelClass->populates($data);
if ($this->asArray) {
return $model->toArray();
} else {