Skip to content

Commit

Permalink
Merge pull request #16513 from vlakoff/enforceOrderBy
Browse files Browse the repository at this point in the history
[5.4] Do not call enforceOrderBy in chunkById
  • Loading branch information
taylorotwell authored Nov 22, 2016
2 parents f0b9858 + 404f969 commit 368937a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ public function chunk($count, callable $callback)
*/
public function chunkById($count, callable $callback, $column = 'id')
{
$this->enforceOrderBy();

$lastId = 0;

do {
Expand Down
2 changes: 0 additions & 2 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1844,8 +1844,6 @@ public function chunk($count, callable $callback)
*/
public function chunkById($count, callable $callback, $column = 'id', $alias = null)
{
$this->enforceOrderBy();

$alias = $alias ?: $column;

$lastId = 0;
Expand Down

0 comments on commit 368937a

Please sign in to comment.