From 0925d5cb8f944120c5f685137f77b3d14ca8fd83 Mon Sep 17 00:00:00 2001 From: manoakys Date: Wed, 21 Dec 2016 16:19:34 +0200 Subject: [PATCH] PHP sample had mistake was $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary')); should be $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary')); --- reference/constraints/NotEqualTo.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/NotEqualTo.rst b/reference/constraints/NotEqualTo.rst index 6d71b2c6ca1..17c8b5e57f0 100644 --- a/reference/constraints/NotEqualTo.rst +++ b/reference/constraints/NotEqualTo.rst @@ -99,7 +99,7 @@ the following: { public static function loadValidatorMetadata(ClassMetadata $metadata) { - $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary')); + $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary')); $metadata->addPropertyConstraint('age', new Assert\NotEqualTo(array( 'value' => 15,