Skip to content

Commit d001c70

Browse files
Merge branch 'fix/extra-find-requests-after-calling-query-scope' into 2.x
2 parents 238d9b2 + cee5fdd commit d001c70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Database/Eloquent/FMEloquentBuilder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ public function paginate($perPage = null, $columns = ['*'], $pageName = 'page',
265265
/**
266266
* Compares a model's modified portal data and original portal data and returns portal data with only modified fields and recordIds
267267
*
268-
* @param $array1 array The modified portal data
269-
* @param $array2 array The model's original portal data
268+
* @param $array1 array The modified portal data
269+
* @param $array2 array The model's original portal data
270270
*/
271271
protected function getOnlyModifiedPortalFields($array1, $array2): array
272272
{
@@ -334,8 +334,6 @@ protected function callScope(callable $scope, array $parameters = [])
334334
$result = $scope(...$parameters) ?? $this;
335335
}
336336

337-
$query->resetFindRequestIndex();
338-
339337
return $result;
340338
}
341339
}

0 commit comments

Comments
 (0)