变更
This commit is contained in:
+2
-4
@@ -238,10 +238,8 @@ class ActiveQuery extends Component implements ISqlBuilder
|
||||
|
||||
$this->getWith($this->modelClass);
|
||||
$collect = new Collection($this, $data, $this->modelClass);
|
||||
if ($this->asArray) {
|
||||
return $collect->toArray();
|
||||
}
|
||||
return $collect;
|
||||
|
||||
return $this->asArray ? $collect->toArray() : $collect;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user