This commit is contained in:
2022-05-30 16:55:15 +08:00
parent 6046f112f9
commit 01d58b4896
+1 -1
View File
@@ -230,7 +230,7 @@ class ActiveQuery extends Component implements ISqlBuilder
*/
public function all(): Collection|array
{
if (($data = $this->execute($this->builder->all())->all()) == false) {
if (!($data = $this->execute($this->builder->all())->all())) {
return new Collection($this, [], $this->modelClass);
}
if (!empty($this->with)) {