Skip to content

Commit ff45f82

Browse files
committed
set a limit on finds to be 1000000000000000000 by default to match Laravel's default behavior
1 parent 0e5edde commit ff45f82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Services/FileMakerConnection.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ public function duplicateRecord(FMBaseBuilder $query): array
216216
*/
217217
public function performFind(FMBaseBuilder $query)
218218
{
219+
// If limit hasn't been specified we should set it to be very high to bypass FM's default 100-record limit
220+
// This more closely matches Laravel's default behavior
221+
if (!isset($query->limit)) {
222+
$query->limit = 1000000000000000000;
223+
}
224+
219225
// if there are no query parameters we need to do a get all records instead of a find
220226
if (empty($query->wheres)) {
221227
return $this->getRecords($query);

0 commit comments

Comments
 (0)