mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
Form & save into DB
This commit is contained in:
@@ -134,6 +134,7 @@ class ActivityType extends AbstractType
|
||||
'label' => $activityType->getLabel('reasons'),
|
||||
'required' => $activityType->isRequired('reasons'),
|
||||
'class' => ActivityReason::class,
|
||||
'multiple' => true,
|
||||
'choice_label' => function (ActivityReason $activityReason) {
|
||||
return $this->translatableStringHelper->localize($activityReason->getName());
|
||||
},
|
||||
@@ -172,6 +173,7 @@ class ActivityType extends AbstractType
|
||||
'label' => $activityType->getLabel('thirdParties'),
|
||||
'required' => $activityType->isRequired('thirdParties'),
|
||||
'class' => ThirdParty::class,
|
||||
'multiple' => true,
|
||||
'choice_label' => function (ThirdParty $thirdParty) {
|
||||
return $thirdParty->getName();
|
||||
},
|
||||
@@ -189,6 +191,7 @@ class ActivityType extends AbstractType
|
||||
'label' => $activityType->getLabel('users'),
|
||||
'required' => $activityType->isRequired('users'),
|
||||
'class' => User::class,
|
||||
'multiple' => true,
|
||||
'choice_label' => function (User $user) {
|
||||
return $user->getUsername();
|
||||
},
|
||||
|
Reference in New Issue
Block a user