File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -202,10 +202,14 @@ query_builder
202
202
Allows you to create a custom query for your choices. See
203
203
:ref: `ref-form-entity-query-builder ` for an example.
204
204
205
- The value of this option can either be a ``QueryBuilder `` object, a Closure or ``null ``.
206
- When using a Closure, you will be passed the ``EntityRepository `` of the entity
207
- as the only argument and should return a ``QueryBuilder ``.
208
- If you'd like to display a list of empty entries, you can return ``null `` in the closure.
205
+ The value of this option can either be a ``QueryBuilder `` object, a Closure or
206
+ ``null ``. When using a Closure, you will be passed the ``EntityRepository `` of
207
+ the entity as the only argument and should return a ``QueryBuilder ``. If you'd
208
+ like to display an empty list of entries, you can return ``null `` in the
209
+ Closure.
210
+
211
+ .. versionadded :: 3.1
212
+ Returning ``null `` in the Closure was introduced in Symfony 3.1.
209
213
210
214
Overridden Options
211
215
------------------
You can’t perform that action at this time.
0 commit comments