Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0626f2b

Browse filesBrowse 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
Copy full SHA for 0626f2b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎reference/constraints/Collection.rst

Copy file name to clipboardExpand all lines: reference/constraints/Collection.rst
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.