diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index 0d900de377f..2b5d7771e19 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -64,7 +64,7 @@ returning a ``QueryBuilder`` object or ``null`` to load all entities):: return $er->createQueryBuilder('u') ->orderBy('u.username', 'ASC'); }, - 'choice_label' => 'username', + 'choice_label' => 'username', // or create `__toString()` in the entity ]); .. note::