mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-16 09:07:38 +00:00
change id, to avoid collision between ListPersonHelper and ListAccompanyingPeriodHelper
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user