Skip to content

Commit 94f7797

Browse files
committed
minor #13279 Update UniqueEntity->message description (scriptibus, Lucas Nothnagel)
This PR was merged into the 3.4 branch. Discussion ---------- Update UniqueEntity->message description The description of the message property implies that it is not possible to change the mapping of the error message. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 694a911 Change wording 'in' to 'via' 9dc18b3 Update UniqueEntity.rst
2 parents 63c92a1 + 694a911 commit 94f7797

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 via 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)