change id, to avoid collision between ListPersonHelper and ListAccompanyingPeriodHelper

This commit is contained in:
2023-07-07 09:33:03 +02:00
parent 7ccff61c25
commit 56d9072abe
3 changed files with 13 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ use function strlen;
class ListPersonHelper
{
public const FIELDS = [
'id',
'personId',
'civility',
'firstName',
'lastName',
@@ -124,6 +124,11 @@ class ListPersonHelper
}
switch ($f) {
case 'personId':
$qb->addSelect('person.id AS personId');
break;
case 'countryOfBirth':
case 'nationality':
$qb->addSelect(sprintf('IDENTITY(person.%s) as %s', $f, $f));