File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ Consider this example:
188
188
#[ORM\Entity]
189
189
#[UniqueEntity(
190
190
fields: ['host', 'port'],
191
- errorPath: 'port',
192
191
message: 'This port is already in use on that host.',
192
+ errorPath: 'port',
193
193
)]
194
194
class Service
195
195
{
@@ -207,8 +207,8 @@ Consider this example:
207
207
constraints :
208
208
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity :
209
209
fields : [host, port]
210
- errorPath : port
211
210
message : ' This port is already in use on that host.'
211
+ errorPath : port
212
212
213
213
.. code-block :: xml
214
214
@@ -224,8 +224,8 @@ Consider this example:
224
224
<value >host</value >
225
225
<value >port</value >
226
226
</option >
227
- <option name =" errorPath" >port</option >
228
227
<option name =" message" >This port is already in use on that host.</option >
228
+ <option name =" errorPath" >port</option >
229
229
</constraint >
230
230
</class >
231
231
@@ -249,8 +249,8 @@ Consider this example:
249
249
{
250
250
$metadata->addConstraint(new UniqueEntity([
251
251
'fields' => ['host', 'port'],
252
- 'errorPath' => 'port',
253
252
'message' => 'This port is already in use on that host.',
253
+ 'errorPath' => 'port',
254
254
]));
255
255
}
256
256
}
You can’t perform that action at this time.
0 commit comments