This commit is contained in:
2023-04-06 23:08:12 +08:00
parent d3772c0134
commit 84f7346d49
+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_array($data)) {
if (is_array($data)) {
return $this->populate($data);
} else {
return NULL;