Php Sonata在添加页面上抛出运行时异常
Sonata在尝试使用CRUDController和条令添加元素时引发以下异常: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
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的最新更改: