Skip to content

Commit 6781134

Browse files
manoakysxabbuh
authored andcommitted
PHP sample had mistake
was $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary')); should be $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary'));
1 parent a342483 commit 6781134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/NotEqualTo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ the following:
102102
{
103103
public static function loadValidatorMetadata(ClassMetadata $metadata)
104104
{
105-
$metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary'));
105+
$metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary'));
106106
107107
$metadata->addPropertyConstraint('age', new Assert\NotEqualTo(array(
108108
'value' => 15,

0 commit comments

Comments
 (0)