Переглянути джерело

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
 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.
 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:
 The available options are:
 
 
 property
 property