Skip to content

Commit 5957927

Browse files
merorafaelwouterj
authored andcommitted
Update entity.rst
Added "choice_translation_domain" and "translation_domain" documentation.
1 parent 383401d commit 5957927

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

reference/forms/types/entity.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ objects from the database.
1616
| | - `choice_label`_ |
1717
| | - `query_builder`_ |
1818
| | - `em`_ |
19+
| | - `choice_translation_domain`_ |
20+
| | - `translation_domain`_ |
1921
+-------------+------------------------------------------------------------------+
2022
| Overridden | - `choices`_ |
2123
| options | |
@@ -176,6 +178,26 @@ em
176178
If specified, this entity manager will be used to load the choices
177179
instead of the ``default`` entity manager.
178180

181+
choice_translation_domain
182+
~~~~~~~~~~~~~
183+
184+
.. versionadded:: 2.7
185+
The ``choice_translation_domain`` option was introduced in Symfony 2.7.
186+
187+
**type**: ``boolean``
188+
189+
This option determines whether the translation of the data obtained will be informed domain ``translation_domain``.
190+
191+
translation_domain
192+
~~~~~~~~~~~~~
193+
194+
.. versionadded:: 2.7
195+
The ``translation_domain`` option was introduced in Symfony 2.7.
196+
197+
**type**: ``string``
198+
199+
If specified, use translations of informed domain(e.g. ``AcmeStoreBundle`` to ``Acme\StoreBundle\Resources\translation`` files).
200+
179201

180202
Overridden Options
181203
------------------

0 commit comments

Comments
 (0)