Skip to content

Commit 3f50e2f

Browse files
1 parent a682bbd commit 3f50e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ returning a ``QueryBuilder`` object or ``null`` to load all entities)::
6464
return $er->createQueryBuilder('u')
6565
->orderBy('u.username', 'ASC');
6666
},
67-
'choice_label' => 'username',
67+
'choice_label' => 'username', // or create `__toString()` in the entity
6868
]);
6969

7070
.. note::

0 commit comments

Comments
 (0)