Skip to content

Commit

Permalink
bug #3897 Collection constraint (hhamon)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Collection constraint

Commits
-------

233fca9 [reference] [constraints] fixed outdated docs for the Collection constraint since Symfony 2.3.
  • Loading branch information
weaverryan committed Jun 7, 2014
2 parents 0c20141 + 233fca9 commit 0626f2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reference/constraints/Collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ field is optional but must be a valid email if supplied, you can do the followin
- Collection:
fields:
personal_email:
- Collection\Required
- Required
- NotBlank: ~
- Email: ~
alternate_email:
- Collection\Optional:
- Optional:
- Email: ~
.. code-block:: php-annotations
Expand Down Expand Up @@ -237,13 +237,13 @@ field is optional but must be a valid email if supplied, you can do the followin
<constraint name="Collection">
<option name="fields">
<value key="personal_email">
<constraint name="Collection\Required">
<constraint name="Required">
<constraint name="NotBlank" />
<constraint name="Email" />
</constraint>
</value>
<value key="alternate_email">
<constraint name="Collection\Optional">
<constraint name="Optional">
<constraint name="Email" />
</constraint>
</value>
Expand Down

0 comments on commit 0626f2b

Please sign in to comment.