php - Symfony Form value not flushing with Selectpicker class

In Symfony 4 form I have a form field declared with EntityType:
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('tags', EntityType::class, array(
'class' => Saptag::class,
'choice_label' => 'descr',
'required' => false,
'multiple' => true,
//'attr' => ['class' => 'selectpicker']
));
...
}
When form is submited my database is well updated. If I activate class 'selectpicker' then my field has the rendering I need in the template but field value do not update database when this class is used. No error occurs...
Any idea of how to handle that ?
EDIT: This issue occurs when form is placed crossed div element:
<div>
</form>
</div>
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to a member function store() on null
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.