This commit is contained in:
2023-04-06 23:07:22 +08:00
parent ff751db14c
commit d3772c0134
+1 -1
View File
@@ -166,7 +166,7 @@ class ActiveQuery extends Component implements ISqlBuilder
public function first(): ModelInterface|null
{
$data = $this->execute($this->builder->one())->one();
if (!is_null($data)) {
if (!is_array($data)) {
return $this->populate($data);
} else {
return NULL;