浏览代码

Update form_types.rst

If no admin class for the linked model class is defined no options are rendered in the form. It is really hard to debug this. I only found the solution when I found the following issue: See issue: https://github.com/sonata-project/SonataAdminBundle/issues/2012

Adding this note to the documentation could save people hours of debugging.
row-b 10 年之前
父节点
当前提交
974cda4f9f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Resources/doc/reference/form_types.rst

+ 2 - 0
Resources/doc/reference/form_types.rst

@@ -85,6 +85,8 @@ btn_add, btn_list, btn_delete and btn_catalogue:
   with these parameters. Setting any of them to ``false`` will hide the
   corresponding button. You can also specify a custom translation catalogue
   for these labels, which defaults to ``SonataAdminBundle``.
+  
+Note: An admin class for the linked model class needs to be defined to render this form type.  
 
 sonata_type_model_hidden
 ^^^^^^^^^^^^^^^^^^^^^^^^