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
202202Allows you to create a custom query for your choices. See
203203:ref: `ref-form-entity-query-builder ` for an example.
204204
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.
209213
210214Overridden Options
211215------------------
You can’t perform that action at this time.
0 commit comments