From 1ad7d7f268edb1849ddd5af311d9d5498132d0ea Mon Sep 17 00:00:00 2001 From: apiotrowski Date: Mon, 4 Dec 2017 12:31:50 +0100 Subject: [PATCH] Update entity.rst --- reference/forms/types/entity.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index 6945ee1b4e3..75d6597ffed 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -63,7 +63,7 @@ be listed inside the choice field:: $builder->add('users', EntityType::class, array( // query choices from this entity - 'class' => User:class, + 'class' => User::class, // use the User.username property as the visible option string 'choice_label' => 'username',