8000 minor #5228 Clarify `query_builder` closure return type (kix) · ThomasLandauer/symfony-docs@283c157 · GitHub
[go: up one dir, main page]

Skip to content

Commit 283c157

Browse files
committed
minor symfony#5228 Clarify query_builder closure return type (kix)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes symfony#5228). Discussion ---------- Clarify `query_builder` closure return type It wasn't clear what the Closure should return when passing it in the `query_builder` option. Commits ------- fbe9ea5 Clarify `query_builder` closure return type
2 parents b329b2c + fbe9ea5 commit 283c157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ If specified, this is used to query the subset of options (and their
165165
order) that should be used for the field. The value of this option can
166166
either be a ``QueryBuilder`` object or a Closure. If using a Closure,
167167
it should take a single argument, which is the ``EntityRepository`` of
168-
the entity.
168+
the entity and return an instance of ``QueryBuilder``.
169169

170170
Overridden Options
171171
------------------

0 commit comments

Comments
 (0)
0