Skip to content

Commit

Permalink
minor symfony#13279 Update UniqueEntity->message description (scripti…
Browse files Browse the repository at this point in the history
…bus, 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
  • Loading branch information
OskarStark committed Mar 2, 2020
2 parents 63c92a1 + 694a911 commit 94f7797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reference/constraints/UniqueEntity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ each with a single field.

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

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

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

0 comments on commit 94f7797

Please sign in to comment.