We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc8f4583 commit45f586bCopy full SHA for 45f586b
reference/forms/types/entity.rst
@@ -166,12 +166,13 @@ cast into a string and so must have a ``__toString()`` method.
166
query_builder
167
~~~~~~~~~~~~~
168
169
-**type**: ``Doctrine\ORM\QueryBuilder`` or a Closure
+**type**: ``Doctrine\ORM\QueryBuilder`` or a Closure **default**: ``null``
170
171
Allows you to create a custom query for your choices. See
172
:ref:`ref-form-entity-query-builder` for an example.
173
174
-The value of this option can either be a ``QueryBuilder`` object or a Closure.
+The value of this option can either be a ``QueryBuilder`` object, a Closure or
175
+``null`` by default which loads all entities.
176
When using a Closure, you will be passed the ``EntityRepository`` of the entity
177
as the only argument and should return a ``QueryBuilder``.
178