Skip to content

Commit de5025d

Browse files
committed
minor #6599 Fixed null description of query_builder option (HeahDude)
This PR was merged into the 2.8 branch. Discussion ---------- Fixed null description of query_builder option doc fix: 2.8+ ref symfony/symfony#13990 (comment) Commits ------- 14482e4 Fixed null description of query_builder option
2 parents fc89d0e + 14482e4 commit de5025d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/types/entity.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ The value of this option can either be a ``QueryBuilder`` object, a Closure or
207207
passed the ``EntityRepository`` of the entity as the only argument and should
208208
return a ``QueryBuilder``.
209209

210-
If you'd like to display an empty list of entries, you can return ``null`` in
211-
the Closure.
210+
If you'd like to use default loading of all entries, you can return ``null`` in
211+
the Closure as well.
212212

213213
.. versionadded:: 2.8
214214
Returning ``null`` in the Closure was introduced in Symfony 2.8.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy