Answer the question
In order to leave comments, you need to log in
How to add default value to Symfony form in ->add('company') method?
company is the value of the linked table with the list entity which is rendered as a select. How to add a default value (placeholder)?
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('email', EmailType::class)
->add('company')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question