File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ using an email address that already exists in the system.
11
11
| Options | - `fields `_ |
12
12
| | - `message `_ |
13
13
| | - `em `_ |
14
+ | | - `repositoryMethod `_ |
14
15
+----------------+-------------------------------------------------------------------------------------+
15
16
| Class | :class: `Symfony\\ Bridge\\ Doctrine\\ Validator\\ Constraints\\ UniqueEntity ` |
16
17
+----------------+-------------------------------------------------------------------------------------+
@@ -111,3 +112,17 @@ The name of the entity manager to use for making the query to determine the
111
112
uniqueness. If it's left blank, the correct entity manager will determined for
112
113
this class. For that reason, this option should probably not need to be
113
114
used.
115
+
116
+
117
+ repositoryMethod
118
+ ~~~~~~~~~~~~~~~~
119
+
120
+ **type **: ``string `` **default **: ``findBy ``
121
+
122
+ .. versionadded :: 2.1
123
+ The ``repositoryMethod `` option was added in Symfony 2.1. Before, it was always using findBy.
124
+
125
+
126
+
127
+ The name of the repository method to use for making the query to determine the
128
+ uniqueness. If it's left blank, the findBy method will be used. This method should return a countable result.
You can’t perform that action at this time.
0 commit comments