Skip to content

Commit 0626f2b

Browse files
committed
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.
2 parents 0c20141 + 233fca9 commit 0626f2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: reference/constraints/Collection.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ field is optional but must be a valid email if supplied, you can do the followin
195195
- Collection:
196196
fields:
197197
personal_email:
198-
- Collection\Required
198+
- Required
199199
- NotBlank: ~
200200
- Email: ~
201201
alternate_email:
202-
- Collection\Optional:
202+
- Optional:
203203
- Email: ~
204204
205205
.. code-block:: php-annotations
@@ -237,13 +237,13 @@ field is optional but must be a valid email if supplied, you can do the followin
237237
<constraint name="Collection">
238238
<option name="fields">
239239
<value key="personal_email">
240-
<constraint name="Collection\Required">
240+
<constraint name="Required">
241241
<constraint name="NotBlank" />
242242
<constraint name="Email" />
243243
</constraint>
244244
</value>
245245
<value key="alternate_email">
246-
<constraint name="Collection\Optional">
246+
<constraint name="Optional">
247247
<constraint name="Email" />
248248
</constraint>
249249
</value>

0 commit comments

Comments
 (0)