From ba23ecb6a92323c65af44da2524f6f81a28e0b35 Mon Sep 17 00:00:00 2001 From: Simo Heinonen Date: Mon, 24 Jun 2024 12:19:38 +0300 Subject: [PATCH] Allow bigint in search --- src/Orm/EntityRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orm/EntityRepository.php b/src/Orm/EntityRepository.php index 042dd0884c..bf762650cf 100644 --- a/src/Orm/EntityRepository.php +++ b/src/Orm/EntityRepository.php @@ -88,7 +88,7 @@ private function addSearchClause(QueryBuilder $queryBuilder, SearchDto $searchDt $lowercaseQueryTerm = mb_strtolower($queryTerm); $isNumericQueryTerm = is_numeric($queryTerm); $isSmallIntegerQueryTerm = ctype_digit($queryTerm) && $queryTerm >= -32768 && $queryTerm <= 32767; - $isIntegerQueryTerm = ctype_digit($queryTerm) && $queryTerm >= -2147483648 && $queryTerm <= 2147483647; + $isIntegerQueryTerm = ctype_digit($queryTerm) && $queryTerm >= -9223372036854775808 && $queryTerm <= 18446744073709551617; $isUuidQueryTerm = Uuid::isValid($queryTerm); $isUlidQueryTerm = Ulid::isValid($queryTerm);