Skip to content

Commit 34dffbd

Browse files
committed
Docs for repositoryMethod option of UniqueEntity
1 parent eed8e46 commit 34dffbd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ using an email address that already exists in the system.
1111
| Options | - `fields`_ |
1212
| | - `message`_ |
1313
| | - `em`_ |
14+
| | - `repositoryMethod`_ |
1415
+----------------+-------------------------------------------------------------------------------------+
1516
| Class | :class:`Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity` |
1617
+----------------+-------------------------------------------------------------------------------------+
@@ -111,3 +112,11 @@ The name of the entity manager to use for making the query to determine the
111112
uniqueness. If it's left blank, the correct entity manager will determined for
112113
this class. For that reason, this option should probably not need to be
113114
used.
115+
116+
repositoryMethod
117+
~~~~~~~~~~~~~~~~
118+
119+
**type**: ``string``
120+
121+
The name of the repository method to use for making the query to determine the
122+
uniqueness. If it's left blank, the findBy method will be used. This method should return a countable result.

0 commit comments

Comments
 (0)