mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
cs: Third and last part.
This commit is contained in:
@@ -121,16 +121,16 @@ trait AppendScopeChoiceTypeTrait
|
||||
$form = $event->getForm();
|
||||
$form->add(
|
||||
$builder
|
||||
->create(
|
||||
$name,
|
||||
ChoiceType::class,
|
||||
[
|
||||
'choices' => array_combine(array_values($choices), array_keys($choices)),
|
||||
'auto_initialize' => false,
|
||||
]
|
||||
)
|
||||
->addModelTransformer($dataTransformer)
|
||||
->getForm()
|
||||
->create(
|
||||
$name,
|
||||
ChoiceType::class,
|
||||
[
|
||||
'choices' => array_combine(array_values($choices), array_keys($choices)),
|
||||
'auto_initialize' => false,
|
||||
]
|
||||
)
|
||||
->addModelTransformer($dataTransformer)
|
||||
->getForm()
|
||||
);
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user