From 004d60ede9518055c51e086bbd0f108f1205dd70 Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Thu, 16 Nov 2023 16:17:07 +0100 Subject: [PATCH] add-label-for-links-entityType --- reference/forms/types/entity.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index 6cd13520c9c..4d8c7f2b5ee 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -174,7 +174,7 @@ instead of the ``default`` entity manager. **type**: ``Doctrine\ORM\QueryBuilder`` or a ``callable`` **default**: ``null`` Allows you to create a custom query for your choices. See -:ref:`ref-form-entity-query-builder` for an example. +:ref:`how to use it ` for an example. The value of this option can either be a ``QueryBuilder`` object, a callable or ``null`` (which will load all entities). When using a callable, you will be @@ -211,7 +211,7 @@ submitted. Instead of allowing the `class`_ and `query_builder`_ options to fetch the entities to include for you, you can pass the ``choices`` option directly. -See :ref:`reference-forms-entity-choices`. +See :ref:`how to use choices `. ``data_class`` ~~~~~~~~~~~~~~