diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index a851af61a74..d36f94fc20a 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -111,7 +111,7 @@ If your valid choice list is simple, you can pass them in directly via the public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint( - 'gender', + 'city', new Assert\Choice(array('New York', 'Berlin', 'Tokyo')) );