We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d887e85 + 86580e7 commit 07e39a5Copy full SHA for 07e39a5
reference/forms/types/entity.rst
@@ -49,7 +49,8 @@ Using a Custom Query for the Entities
49
50
If you want to create a custom query to use when fetching the entities
51
(e.g. you only want to return some entities, or need to order them), use
52
-the `query_builder`_ option::
+the `query_builder`_ option (which must be a ``QueryBuilder`` object, a closure
53
+returning a ``QueryBuilder`` object or ``null`` to load all entities)::
54
55
use App\Entity\User;
56
use Doctrine\ORM\EntityRepository;
0 commit comments