Skip to content

Commit fbe9ea5

Browse files
kixweaverryan
authored andcommitted
Clarify query_builder closure return type
It wasn't clear what the Closure should return when passing it in the `query_builder` option.
1 parent b329b2c commit fbe9ea5

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)