Sonata 在添加页面上抛出 RuntimeException
Sonata throwing RuntimeException on add pages
尝试使用 CRUDController 和 Doctrine 添加元素时,Sonata 抛出以下异常:
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 的最新更改:
https://github.com/sonata-project/SonataAdminBundle/pull/3179
尝试使用 CRUDController 和 Doctrine 添加元素时,Sonata 抛出以下异常:
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 的最新更改: https://github.com/sonata-project/SonataAdminBundle/pull/3179