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.
1 parent 29a0b58 commit 86580e7Copy full SHA for 86580e7
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. Please note, that `query_builder` is used to compose data, not fetch real final results::
+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