From fbe9ea5387ad7ca70f3095e755c214bef9ad7002 Mon Sep 17 00:00:00 2001 From: Stepan Anchugov Date: Mon, 4 May 2015 20:48:34 +0500 Subject: [PATCH] Clarify `query_builder` closure return type It wasn't clear what the Closure should return when passing it in the `query_builder` option. --- reference/forms/types/entity.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index ddead19b901..85d6d4b4c68 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -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 ------------------