File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ using an email address that already exists in the system.
12
12
| | - `message `_ |
13
13
| | - `em `_ |
14
14
| | - `repositoryMethod `_ |
15
+ | | - `entityClass `_ |
15
16
| | - `errorPath `_ |
16
17
| | - `ignoreNull `_ |
17
18
| | - `payload `_ |
@@ -164,6 +165,20 @@ The name of the repository method to use for making the query to determine
164
165
the uniqueness. If it's left blank, the ``findBy `` method will be used.
165
166
This method should return a countable result.
166
167
168
+ entityClass
169
+ ~~~~~~~~~~~
170
+
171
+ **type **: ``string `` **default **: ``null ``
172
+
173
+ .. versionadded :: 3.2
174
+ The ``entityClass `` option was introduced in Symfony 3.2.
175
+
176
+ By default, the query performed to ensure the uniqueness uses the repository of
177
+ the current class instance. However, in some cases, such as when using Doctrine
178
+ inheritance mapping, you need to execute the query in a different repository.
179
+ Use this option to define the fully-qualified class name (FQCN) of the Doctrine
180
+ entity associated with the repository you want to use.
181
+
167
182
errorPath
168
183
~~~~~~~~~
169
184
You can’t perform that action at this time.
0 commit comments