Permalink
Browse files

feature #4336 [Form] Add entity manager instance support for em optio…

…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 9caea6f5b0a4e2e3ecfeb8f9e32199db2bdba47c
Showing with 2 additions and 2 deletions.
  1. +2 −2 reference/forms/types/entity.rst
@@ -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.
@@ -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.

0 comments on commit 9caea6f

Please sign in to comment.