Php 当我尝试使用可编辑选项更新数据时,configureListFields会出现问题

Php 当我尝试使用可编辑选项更新数据时,configureListFields会出现问题,php,sonata,symfony-2.8,Php,Sonata,Symfony 2.8,我实际上是在尝试添加一种可能性来更新SonataList中的字段 我遵循symfony=> 我做了这个密码 ->add('status', 'choice', [ 'label' => 'Status', 'class' => 'secret', 'editable' => true, 'choices' => [ $inqu

我实际上是在尝试添加一种可能性来更新SonataList中的字段

我遵循symfony=>

我做了这个密码

->add('status', 'choice', [
            'label'    => 'Status',
            'class'    => 'secret',
            'editable' => true,
            'choices'  => [
                $inquiry_service::_statusInWaiting => 'En attente',
                $inquiry_service::_statusValidated => 'Validé',
                $inquiry_service::_statusRejected  => 'Rejeté',
结果是,我可以在列表中选择我的3个选项,但当我尝试更新数据时,出现以下错误=>

Catchable Fatal Error: Method WF\Sonata\AdminBundle\Admin\FieldDescription::__toString() must return a string value

我错过了哪些选项?

几个小时后,我发现FieldDescription对象对“$this->getLabel”返回了“true”,并且由于版本过时,这是一个sonata问题


为了在不更新我的版本的情况下解决这个问题,我创建了一个带有选择表单的模板。

几个小时后,我发现FieldDescription对象对“$this->getLabel”返回了“true”,这是一个sonata问题,因为版本过时

为了解决这个问题而不更新我的版本,我创建了一个带有选择表单的模板