Php Symfony-选择类型返回

Php Symfony-选择类型返回,php,symfony,select,drop-down-menu,Php,Symfony,Select,Drop Down Menu,我请求了一个表单,但无法为“选择操作选项”字段定义ChoiceType $form = $this->createFormBuilder() ->add('title', TextType::class, array('label' => 'Label1', 'attr' => ['class'=>'form-control'])) ->add('actions', ChoiceType::class, array('a' =&

我请求了一个表单,但无法为“选择操作选项”字段定义ChoiceType

$form = $this->createFormBuilder()
        ->add('title', TextType::class, array('label' => 'Label1', 'attr' => ['class'=>'form-control']))
        ->add('actions', ChoiceType::class, array('a' => 'Option 1', 'b' => 'Option 2','c' => 'Option 3'))
        ->add('save', SubmitType::class, array('label' => 'Send', 'attr' => [
            'class' => 'btn btn-primary action-save'
        ]))
        ->getForm();
有什么想法吗?

 $form = $this->createFormBuilder()
        ->add('title', TextType::class, array('label' => 'Label1', 'attr' => ['class'=>'form-control']))
        ->add('actions', ChoiceType::class, array(
            'choices' => array('a' => 'Option 1', 'b' => 'Option 2','c' => 'Option 3')

        ))
        ->add('save', SubmitType::class, array('label' => 'Send', 'attr' => [
            'class' => 'btn btn-primary action-save'
        ]))
        ->getForm();