Skip to content

[Form] Add entity manager instance support for em option #4336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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