From 404f969067b7ed8e8b2727d2c4ed7a9d16b2afe9 Mon Sep 17 00:00:00 2001 From: vlakoff Date: Wed, 23 Nov 2016 00:08:13 +0100 Subject: [PATCH] chunkById is already applying an "order by" clause --- src/Illuminate/Database/Eloquent/Builder.php | 2 -- src/Illuminate/Database/Query/Builder.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Builder.php b/src/Illuminate/Database/Eloquent/Builder.php index f80a52c6cb8d..5227c637abbe 100755 --- a/src/Illuminate/Database/Eloquent/Builder.php +++ b/src/Illuminate/Database/Eloquent/Builder.php @@ -433,8 +433,6 @@ public function chunk($count, callable $callback) */ public function chunkById($count, callable $callback, $column = 'id') { - $this->enforceOrderBy(); - $lastId = 0; do { diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 67e8780574cf..27247030d749 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -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;