Symfonyのフォームがあり、
それはn対nの関係を持つ'Manifestation'というエンティティの値を表示したいと思っています。
lang
1->add('manifestations')
を実行して選択一覧に empty_value 'All'を指定すると動かないのです。
以下のように設定しています。
lang
1public function buildForm(FormBuilderInterface $builder, array $options) { 2 $builder 3 ->add('manifestations', 'entity', array( 4 'class' => 'PrifProtocoleBundle:Manifestation', 5 'multiple' => true, 6 'property' => 'name', 7 'empty_value' => 'All', 8 'required' => false,)); 9}
どなたか詳しい方、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。