eee
This commit is contained in:
+1
-3
@@ -89,9 +89,7 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder
|
||||
*/
|
||||
public function chunk(int $size, Closure $closure): void
|
||||
{
|
||||
if ($this->offset === -1) {
|
||||
$this->offset = 0;
|
||||
}
|
||||
if ($this->offset === -1) $this->offset = 0;
|
||||
$data = $this->offset($this->offset)->limit($size)->get();
|
||||
if (!$data || $data->isEmpty()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user