Skip to content

Commit 09a6fd7

Browse files
committed
[Form] Add entity manager instance support for em option
1 parent 97943e8 commit 09a6fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: reference/forms/types/entity.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ or the short alias name (as shown prior).
117117
em
118118
~~
119119

120-
**type**: ``string`` **default**: the default entity manager
120+
**type**: ``string`` | ``Doctrine\Common\Persistence\ObjectManager`` **default**: the default entity manager
121121

122122
If specified, the specified entity manager will be used to load the choices
123123
instead of the default entity manager.
@@ -183,7 +183,7 @@ directly.
183183
choices
184184
~~~~~~~
185185

186-
**type**: array || ``\Traversable`` **default**: ``null``
186+
**type**: array | ``\Traversable`` **default**: ``null``
187187

188188
Instead of allowing the `class`_ and `query_builder`_ options to fetch the
189189
entities to include for you, you can pass the ``choices`` option directly.

0 commit comments

Comments
 (0)