Permalink
Browse files

bug #3897 Collection constraint (hhamon)

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 0626f2bda67fa34ac6039a400a9b23f5968d9e82
Showing with 4 additions and 4 deletions.
  1. +4 −4 reference/constraints/Collection.rst
@@ -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
@@ -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>

0 comments on commit 0626f2b

Please sign in to comment.