|
@@ -128,8 +128,10 @@ class BatchQueryResult implements \Iterator, \Countable
|
|
|
$criteria->offset = $this->offset;
|
|
$criteria->offset = $this->offset;
|
|
|
$this->offset += $this->batchSize;
|
|
$this->offset += $this->batchSize;
|
|
|
|
|
|
|
|
|
|
+ /** @var ActiveRecord $className */
|
|
|
$className = get_class($this->ar);
|
|
$className = get_class($this->ar);
|
|
|
- return (new $className)->findAll($criteria);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ return $className::model()->findAll($criteria);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|