From 890e25a11b5a0e7a5bd7c737888a634cbddc5c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lourseau?= Date: Thu, 10 Nov 2016 16:29:51 +0100 Subject: [PATCH] Update Choice.rst Fixed city choice (php code block). --- reference/constraints/Choice.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) );