Skip to content

Commit

Permalink
Clarify query_builder closure return type
Browse files Browse the repository at this point in the history
It wasn't clear what the Closure should return when passing it in the `query_builder` option.
  • Loading branch information
kix authored and weaverryan committed May 23, 2015
1 parent b329b2c commit fbe9ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ If specified, this is used to query the subset of options (and their
order) that should be used for the field. The value of this option can
either be a ``QueryBuilder`` object or a Closure. If using a Closure,
it should take a single argument, which is the ``EntityRepository`` of
the entity.
the entity and return an instance of ``QueryBuilder``.

Overridden Options
------------------
Expand Down

0 comments on commit fbe9ea5

Please sign in to comment.