Skip to content

Commit 94c0f45

Browse files
committed
[#6599] Make description a little bit more clear
1 parent de5025d commit 94c0f45

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

reference/forms/types/entity.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,8 @@ Allows you to create a custom query for your choices. See
205205
The value of this option can either be a ``QueryBuilder`` object, a Closure or
206206
``null`` (which will load all entities). When using a Closure, you will be
207207
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.
208+
return a ``QueryBuilder``. Returning ``null`` in the Closure will result in
209+
loading all entities.
212210

213211
.. versionadded:: 2.8
214212
Returning ``null`` in the Closure was introduced in Symfony 2.8.

0 commit comments

Comments
 (0)