mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	change id, to avoid collision between ListPersonHelper and ListAccompanyingPeriodHelper
This commit is contained in:
		| @@ -32,7 +32,7 @@ use Symfony\Contracts\Translation\TranslatorInterface; | ||||
| final readonly class ListAccompanyingPeriodHelper | ||||
| { | ||||
|     public const FIELDS = [ | ||||
|         'id', | ||||
|         'acpId', | ||||
|         'step', | ||||
|         'stepSince', | ||||
|         'openingDate', | ||||
| @@ -219,8 +219,10 @@ final readonly class ListAccompanyingPeriodHelper | ||||
|  | ||||
|     public function addSelectClauses(QueryBuilder $qb, \DateTimeImmutable $calcDate): void | ||||
|     { | ||||
|         $qb->addSelect('acp.id AS acpId'); | ||||
|  | ||||
|         // add the regular fields | ||||
|         foreach (['id', 'openingDate', 'closingDate', 'confidential', 'emergency', 'intensity', 'createdAt', 'updatedAt'] as $field) { | ||||
|         foreach (['openingDate', 'closingDate', 'confidential', 'emergency', 'intensity', 'createdAt', 'updatedAt'] as $field) { | ||||
|             $qb->addSelect(sprintf('acp.%s AS %s', $field, $field)); | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -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)); | ||||
|   | ||||
| @@ -997,6 +997,8 @@ notification: | ||||
|     Notify referrer: Notifier le référent | ||||
|     Notify any: Notifier d'autres utilisateurs | ||||
|  | ||||
| personId: Identifiant de l'usager | ||||
|  | ||||
| export: | ||||
|     export: | ||||
|         acp_stats: | ||||
| @@ -1152,7 +1154,7 @@ export: | ||||
|             Generate a list of accompanying periods, filtered on different parameters.: Génère une liste des parcours d'accompagnement, filtrée sur différents paramètres. | ||||
|             Date of calculation for associated elements: Date de calcul des éléments associés | ||||
|             The associated referree, localisation, and other elements will be valid at this date: Les éléments associés, comme la localisation, le référent et d'autres éléments seront valides à cette date | ||||
|             id: Identifiant du parcours | ||||
|             acpId: Identifiant du parcours | ||||
|             openingDate: Date d'ouverture du parcours | ||||
|             closingDate: Date de fermeture du parcours | ||||
|             closingMotive: Motif de cloture | ||||
|   | ||||
		Reference in New Issue
	
	Block a user