diff --git a/components/validator/resources.rst b/components/validator/resources.rst index 5e35a1c4f1d..17ca7b7769f 100644 --- a/components/validator/resources.rst +++ b/components/validator/resources.rst @@ -45,7 +45,7 @@ In this example, the validation metadata is retrieved executing the public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint('name', new Assert\NotBlank()); - $metadata->addPropertyConstraint('name', new Asert\Length(array( + $metadata->addPropertyConstraint('name', new Assert\Length(array( 'min' => 5, 'max' => 20, )));