diff --git a/components/validator/metadata.rst b/components/validator/metadata.rst index 645ab9f0ac9..2d02405cc67 100755 --- a/components/validator/metadata.rst +++ b/components/validator/metadata.rst @@ -58,7 +58,7 @@ Then, add the Validator component configuration to the class:: { public static function loadValidatorMetadata(ClassMetadata $metadata) { - $metadata->addGetterConstraint('passwordSafe', new Assert\True(array( + $metadata->addGetterConstraint('passwordSafe', new Assert\IsTrue(array( 'message' => 'The password cannot match your first name', ))); }