This commit is contained in:
2021-10-19 18:25:39 +08:00
parent f2c1db9116
commit 1d1b908c2d
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -223,6 +223,7 @@ class ActiveQuery extends Component implements ISqlBuilder
*/ */
public function getWith(ModelInterface $model): ModelInterface public function getWith(ModelInterface $model): ModelInterface
{ {
var_dump($this->with);
if (empty($this->with) || !is_array($this->with)) { if (empty($this->with) || !is_array($this->with)) {
return $model; return $model;
} }
-1
View File
@@ -68,7 +68,6 @@ class CollectionIterator extends \ArrayIterator
if (is_array($current = parent::current())) { if (is_array($current = parent::current())) {
$current = $this->newModel($current); $current = $this->newModel($current);
} }
var_dump($current);
return $this->query->getWith($current); return $this->query->getWith($current);
} }