Skip to content

Commit

Permalink
Fixed null description of query_builder option
Browse files Browse the repository at this point in the history
  • Loading branch information
HeahDude committed May 21, 2016
1 parent 3a7d782 commit 14482e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ The value of this option can either be a ``QueryBuilder`` object, a Closure or
passed the ``EntityRepository`` of the entity as the only argument and should
return a ``QueryBuilder``.

If you'd like to display an empty list of entries, you can return ``null`` in
the Closure.
If you'd like to use default loading of all entries, you can return ``null`` in
the Closure as well.

.. versionadded:: 2.8
Returning ``null`` in the Closure was introduced in Symfony 2.8.
Expand Down

0 comments on commit 14482e4

Please sign in to comment.