8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceaadad commit caf3e1fCopy full SHA for caf3e1f
reference/constraints/Unique.rst
@@ -103,6 +103,20 @@ strings:
103
Options
104
-------
105
106
+``fields``
107
+~~~~~~~~~~
108
+
109
+**type**: ``array`` | ``string``
110
111
112
+.. versionadded:: 6.1
113
114
+ The ``fields`` option was introduced in Symfony 6.1.
115
116
+This is optional and defines key or keys
117
+in a collection that should be checked for uniqueness.
118
+By default, all collection keys are checked for uniqueness.
119
120
.. include:: /reference/constraints/_groups-option.rst.inc
121
122
``message``
0 commit comments