Based on this documentation of MDB: https://mdbootstrap.com/docs/jquery/forms/select/
I have created this form
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('categorie', EntityType::class, [
// This field shows all the categories
'class' => Categorie::class,
'Placeholder' => 'Select choice',
'mapped' => false,
'multiple' => true,
'attr' => ['class' => 'mdb-select']
])
Like what i have coded i want to see 'Select choice' in place holder But this the result in picture :
My probleme is i see directly the resulat of class Categorie, but at first i need to see the placeholder!
Any solutions please?
PS: My question is not duplicate to this : How to add placeholder on input in Symfony 4 form?
because i'm use MaterialDesignBootstrap and not bootstrap, i have used placeholder like the response of that question and not work.