Skip to content

Commit

Permalink
feature #4336 [Form] Add entity manager instance support for em optio…
Browse files Browse the repository at this point in the history
…n (egeloen)

This PR was merged into the master branch.

Discussion
----------

[Form] Add entity manager instance support for em option

This PR documents symfony/symfony#12251

Commits
-------

09a6fd7 [Form] Add entity manager instance support for em option
  • Loading branch information
weaverryan committed Nov 13, 2014
2 parents eb48e4d + 09a6fd7 commit 9caea6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ or the short alias name (as shown prior).
em
~~

**type**: ``string`` **default**: the default entity manager
**type**: ``string`` | ``Doctrine\Common\Persistence\ObjectManager`` **default**: the default entity manager

If specified, the specified entity manager will be used to load the choices
instead of the default entity manager.
Expand Down Expand Up @@ -183,7 +183,7 @@ directly.
choices
~~~~~~~

**type**: array || ``\Traversable`` **default**: ``null``
**type**: array | ``\Traversable`` **default**: ``null``

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

0 comments on commit 9caea6f

Please sign in to comment.