File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,13 @@ cast into a string and so must have a ``__toString()`` method.
166
166
query_builder
167
167
~~~~~~~~~~~~~
168
168
169
- **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure
169
+ **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure ** default **: `` null ``
170
170
171
171
Allows you to create a custom query for your choices. See
172
172
:ref: `ref-form-entity-query-builder ` for an example.
173
173
174
- The value of this option can either be a ``QueryBuilder `` object or a Closure.
174
+ The value of this option can either be a ``QueryBuilder `` object, a Closure or
175
+ ``null `` by default which loads all entities.
175
176
When using a Closure, you will be passed the ``EntityRepository `` of the entity
176
177
as the only argument and should return a ``QueryBuilder ``.
177
178
You can’t perform that action at this time.
0 commit comments