Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Sonata在添加页面上抛出运行时异常_Php_Symfony_Sonata Admin - Fatal编程技术网

Php Sonata在添加页面上抛出运行时异常

Php Sonata在添加页面上抛出运行时异常,php,symfony,sonata-admin,Php,Symfony,Sonata Admin,Sonata在尝试使用CRUDController和条令添加元素时引发以下异常: You are using a closure with the `InlineConstraint`, this constraint cannot be serialized. You need to re-attach the `InlineConstraint` on each request. Once done, you can set the `serializingWarning` option t

Sonata在尝试使用CRUDController和条令添加元素时引发以下异常:

You are using a closure with the `InlineConstraint`, this constraint cannot be serialized. You need to re-attach the `InlineConstraint` on each request. Once done, you can set the `serializingWarning` option to `true` to avoid this message.
是否知道在何处以及如何停用此功能,以及导致此异常的原因?我在文档中也没有看到类似的内容

它被扔到这里:

in vendor/sonata-project/core-bundle/Validator/Constraints/InlineConstraint.php at line 34

在composer.json中使用版本dev master时,可以解决此问题:

"sonata-project/admin-bundle": "dev-master"
这是SonataCore的最新版本2.3.6,其中包括rande的最新更改: