Bonjour, j'ai un problème concertant un select multiple:
je veux lister tous les id des magasins et pouvoir attribuer plusieurs magasins sur un user.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 ->add('magasin', 'entity', array( 'class' => 'GlobalBundle:Magasin', 'property' => 'id', 'multiple' => true, 'required' => false ))
J'ai cette erreur:
Expected argument of type "Doctrine\Common\Collections\Collection", "Proxies\GlobalBundleEntityMagasinProxy" given
Si je retire le multiple j'ai bien ma liste de magasin qui s'affiche.
Need help!
merci
Partager