Answer the question
In order to leave comments, you need to log in
How to reset select with reset in Symfony?
I'm trying to organize a form reset of all values. For
->add(
'category',
'entity',
array(
'class' => 'Category',
'property' => 'name',
'empty_value' => '-- Все --',
'multiple' => true,
'expanded' => true,
'required' => false,
)
)
->add(
'maker',
'entity',
array(
'class' => 'Maker',
'property' => 'name',
'required' => false,
'data' => null,
'empty_value' => '-- Все --',
)
)
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