变更
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user