diff --git a/src/Bundle/ChillPersonBundle/PersonIdentifier/PersonIdentifierManagerInterface.php b/src/Bundle/ChillPersonBundle/PersonIdentifier/PersonIdentifierManagerInterface.php index eddcb6095..b28fba7b6 100644 --- a/src/Bundle/ChillPersonBundle/PersonIdentifier/PersonIdentifierManagerInterface.php +++ b/src/Bundle/ChillPersonBundle/PersonIdentifier/PersonIdentifierManagerInterface.php @@ -18,6 +18,8 @@ interface PersonIdentifierManagerInterface /** * Build PersonIdentifierWorker's for all active definition. * + * Only active definition are returned. + * * @return list */ public function getWorkers(): array; diff --git a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php index 2947038a8..f704d28bf 100644 --- a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php @@ -153,7 +153,7 @@ final readonly class PersonACLAwareRepository implements PersonACLAwareRepositor WHERE identifier.canonical LIKE LOWER(UNACCENT(?)) || '%' AND identifier.definition_id IN ({$idDefinitionWorkerQuestionMarks}) AND person.id = identifier.person_id )"; - $pertinence[] = "({$mq})::int * 1_000_000"; + $pertinence[] = "({$mq})::int * 1000000"; $qArguments = [...$qArguments, $str, ...$idDefinitionWorkers]; $pertinenceArgs = [...$pertinenceArgs, $str, ...$idDefinitionWorkers]; }