We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de5025d commit 94c0f45Copy full SHA for 94c0f45
reference/forms/types/entity.rst
@@ -205,10 +205,8 @@ Allows you to create a custom query for your choices. See
205
The value of this option can either be a ``QueryBuilder`` object, a Closure or
206
``null`` (which will load all entities). When using a Closure, you will be
207
passed the ``EntityRepository`` of the entity as the only argument and should
208
-return a ``QueryBuilder``.
209
-
210
-If you'd like to use default loading of all entries, you can return ``null`` in
211
-the Closure as well.
+return a ``QueryBuilder``. Returning ``null`` in the Closure will result in
+loading all entities.
212
213
.. versionadded:: 2.8
214
Returning ``null`` in the Closure was introduced in Symfony 2.8.
0 commit comments