Skip to content

Commit 9dc18b3

Browse files
authored
Update UniqueEntity.rst
The description of the message property implies that it is not possible to change the mapping of the error message.
1 parent 63c92a1 commit 9dc18b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ each with a single field.
145145

146146
**type**: ``string`` **default**: ``This value is already used.``
147147

148-
The message that's displayed when this constraint fails. This message is always
149-
mapped to the first field causing the violation, even when using multiple fields
150-
in the constraint.
148+
The message that's displayed when this constraint fails. This message is by default
149+
mapped to the first field causing the violation. When using multiple fields
150+
in the constraint, the mapping can be specified in the `errorPath`_ property.
151151

152152
Messages can include the ``{{ value }}`` placeholder to display a string
153153
representation of the invalid entity. If the entity doesn't define the

0 commit comments

Comments
 (0)