From 62ffe85ab225b67a7595277fea9779908ea551dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Girardot?= <cgi@atolcd.com> Date: Mon, 9 Nov 2020 10:38:02 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20#79=20:=20Force=20la=20fonction=20countBy?= =?UTF-8?q?Search=20=C3=A0=20retourner=20un=20entier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9381ecf63e500e97b94d55ef7b46efd762389087 --- appli_sf/src/Repository/PersonRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appli_sf/src/Repository/PersonRepository.php b/appli_sf/src/Repository/PersonRepository.php index ad2d798f..d7f72568 100644 --- a/appli_sf/src/Repository/PersonRepository.php +++ b/appli_sf/src/Repository/PersonRepository.php @@ -38,7 +38,7 @@ class PersonRepository extends ServiceEntityRepository bool $onlyBirthYear = false, bool $withoutFirstName = false, bool $onlyNullHelpCode = false - ) { + ): int { $queryBuilder = $this->createQueryBuilder('p'); $queryBuilder->select('COUNT(DISTINCT p.id)'); -- GitLab