modify mysql result
This commit is contained in:
+4
-1
@@ -221,13 +221,16 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
return $this->all()->column($field, $setKey);
|
return $this->all()->column($field, $setKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array|Collection
|
* @return array|Collection
|
||||||
* @throws
|
* @throws
|
||||||
*/
|
*/
|
||||||
public function all(): Collection|array
|
public function all(): Collection|array
|
||||||
{
|
{
|
||||||
$data = $this->execute($this->builder->all())->all();
|
if (($data = $this->execute($this->builder->all())->all()) == false) {
|
||||||
|
return new Collection($this, [], $this->modelClass);
|
||||||
|
}
|
||||||
if (!empty($this->with)) {
|
if (!empty($this->with)) {
|
||||||
$this->getWith($this->modelClass);
|
$this->getWith($this->modelClass);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user