变更
This commit is contained in:
+1
-1
@@ -166,7 +166,7 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
public function first(): ModelInterface|null
|
public function first(): ModelInterface|null
|
||||||
{
|
{
|
||||||
$data = $this->execute($this->builder->one())->one();
|
$data = $this->execute($this->builder->one())->one();
|
||||||
if (!is_null($data)) {
|
if (!is_array($data)) {
|
||||||
return $this->populate($data);
|
return $this->populate($data);
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user