瀏覽代碼

Updated form_types.rst with 3.x branch

lelledaniele 7 年之前
父節點
當前提交
599c4d7675
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Resources/doc/reference/form_types.rst

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

@@ -49,6 +49,11 @@ Note that the third parameter to ``FormMapper::add()`` is optional so
 there is no need to pass in an empty array, it is shown here just to demonstrate
 where the options go when you want to use them.
 
+.. tip::
+
+    You need to create ``ImageAdmin`` class in this case to use ``sonata_type_model`` type.
+    :ref:`You can also use <form_types_fielddescription_options>` use the ``admin_code`` parameter.
+
 The available options are:
 
 property