Skip to content

Commit 4d7a063

Browse files
committed
minor #15012 [Validator] Mention doctrine-bridge in the UniqueEntity constraint (wkania)
This PR was merged into the 4.4 branch. Discussion ---------- [Validator] Mention doctrine-bridge in the UniqueEntity constraint Like in the [UserPassword](https://symfony.com/doc/4.4/reference/constraints/UserPassword.html). Changed also plural to singular because there is only one constraint in those. Commits ------- a757019 [Validator] Mention doctrine-bridge in the UniqueEntity constraint
2 parents e384d4f + a757019 commit 4d7a063

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ using an email address that already exists in the system.
1010
If you want to validate that all the elements of the collection are unique
1111
use the :doc:`Unique constraint </reference/constraints/Unique>`.
1212

13+
.. note::
14+
15+
In order to use this constraint, you should have installed the
16+
symfony/doctrine-bridge with Composer.
17+
1318
========== ===================================================================
1419
Applies to :ref:`class <validation-class-target>`
1520
Options - `em`_

reference/constraints/UserPassword.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ password, but needs to enter their old password for security.
1212

1313
.. note::
1414

15-
In order to use this constraints, you should have installed the
15+
In order to use this constraint, you should have installed the
1616
symfony/security-core component with Composer.
1717

1818
========== ===================================================================

0 commit comments

Comments
 (0)