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.
166166query_builder
167167~~~~~~~~~~~~~
168168
169- **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure
169+ **type **: ``Doctrine\ORM\QueryBuilder `` or a Closure ** default **: `` null ``
170170
171171Allows you to create a custom query for your choices. See
172172:ref: `ref-form-entity-query-builder ` for an example.
173173
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.
175176When using a Closure, you will be passed the ``EntityRepository `` of the entity
176177as the only argument and should return a ``QueryBuilder ``.
177178
You can’t perform that action at this time.
0 commit comments