1
我试图在编辑表单中只创建一个标准的“created_at”字段。继the doc你必须添加以下配置:EasyAdminBundle实体表单字段自定义
MyEntity:
form:
fields:
- { property: 'created_at', type_options: { widget: 'single_text' } }
但它引发以下错误:
An Exception was thrown while handling: The option "widget" does not exist. Defined options are: "action", "allow_extra_fields"...
有什么明显的添加/修改?
您也可以使用'read_only:true'而不是'disabled',但我不知道两者之间有什么区别。 –
是的,我不得不添加类型参数。谢谢。应该更新文档吗? – COil