Skip to content

Commit

Permalink
minor #4216 Update Collection.rst (azarzag)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4216).

Discussion
----------

Update Collection.rst

Fixes wrong key in php code block.

Commits
-------

bf529bb Update Collection.rst
  • Loading branch information
weaverryan committed Sep 15, 2014
2 parents 8591b87 + ee06a53 commit 5c62b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/constraints/Collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5c62b36

Please sign in to comment.