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',