Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit fe32798

Browse files
committed
Merge branch 'release/3.0.7'
2 parents 8110a7d + 989ea44 commit fe32798

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Changelog
2+
## v.3.0.7
3+
- add missing applyCriteria() in chunk() function
24
## v.3.0.6
35
- add new functions
46
* has($relation, $operator, $count, $bolean, $callback) - where has relation

src/Repositories/CoreRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ public function findWhereNotIn(string $column, array $where, array $columns = ['
633633
*/
634634
public function chunk(int $limit, callable $callback, array $columns = ['*']): bool
635635
{
636+
$this->applyCriteria();
637+
636638
$results = $this->getEntity()->select($columns)->chunk($limit, $callback);
637639

638640
$this->makeEntity();

0 commit comments

Comments
 (0)