mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Injection firstPerson in doc
This commit is contained in:
@@ -54,9 +54,20 @@ class HouseholdMemberSelectionContext implements DocGeneratorContextInterface
|
||||
*/
|
||||
public function getData($entity): array {
|
||||
$datas = array(
|
||||
'setValue' => array(),
|
||||
'setValues' => array(),
|
||||
'cloneRowAndSetValues' => array()
|
||||
); // TODO CREER UNE CLASSE POUR CA
|
||||
);
|
||||
|
||||
$persons = $entity->getAccompanyingPeriodWork()->getPersons();
|
||||
|
||||
if(sizeof($persons) > 0) {
|
||||
$firstPerson = $persons[0];
|
||||
|
||||
$datas['setValues'][] = array(
|
||||
'firstPersonFirstName' => $firstPerson->getFirstName(),
|
||||
'firstPersonLastName' => $firstPerson->getLastName(),);
|
||||
}
|
||||
|
||||
|
||||
if(get_class($entity) == AccompanyingPeriodWorkEvaluation::class) {
|
||||
$values = array();
|
||||
|
Reference in New Issue
Block a user