From bf529bb86e5c7cb9710536d667b6604854fdd5bd Mon Sep 17 00:00:00 2001 From: azarzag Date: Wed, 10 Sep 2014 21:45:03 -0400 Subject: [PATCH] Update Collection.rst Wrong key in php code block. --- reference/constraints/Collection.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/Collection.rst b/reference/constraints/Collection.rst index 6f028e358e2..2c93325da2f 100644 --- a/reference/constraints/Collection.rst +++ b/reference/constraints/Collection.rst @@ -144,7 +144,7 @@ blank but is no longer than 100 characters in length, you would do the following $metadata->addPropertyConstraint('profileData', new Assert\Collection(array( 'fields' => array( 'personal_email' => new Assert\Email(), - 'lastName' => array( + 'short_bio' => array( new Assert\NotBlank(), new Assert\Length(array( 'max' => 100,