one line start up now

This commit is contained in:
2024-03-31 22:04:23 +03:00
parent fa5cfab7f5
commit 8bddb565c2
4 changed files with 19 additions and 5 deletions
+1
View File
@@ -34,6 +34,7 @@ class UserAnswerType extends AbstractType
$builder
->add('answer', ChoiceType::class, [
'choices' => $answers,
'choice_value' => 'name',
'choice_label' => function (?AnswerModel $answerModel): string {
return $answerModel->getName();
},