From d7c73b6913af72bc1ba827c53a1775d54482156d Mon Sep 17 00:00:00 2001 From: Carwyn Moore Date: Sat, 13 May 2017 13:36:18 +1200 Subject: [PATCH] Update resources.rst --- components/validator/resources.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, )));