@@ -211,8 +211,8 @@ Consider this example:
211
211
* @ORM\Entity
212
212
* @UniqueEntity(
213
213
* fields={"host", "port"},
214
- * errorPath=" port",
215
- * message="This port is already in use on that host. "
214
+ * message="This port is already in use on that host. ",
215
+ * errorPath=" port"
216
216
* )
217
217
*/
218
218
class Service
@@ -240,8 +240,8 @@ Consider this example:
240
240
#[ORM\Entity]
241
241
#[UniqueEntity(
242
242
fields: ['host', 'port'],
243
- errorPath: 'port',
244
243
message: 'This port is already in use on that host.',
244
+ errorPath: 'port',
245
245
)]
246
246
class Service
247
247
{
@@ -259,8 +259,8 @@ Consider this example:
259
259
constraints :
260
260
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity :
261
261
fields : [host, port]
262
- errorPath : port
263
262
message : ' This port is already in use on that host.'
263
+ errorPath : port
264
264
265
265
.. code-block :: xml
266
266
@@ -276,8 +276,8 @@ Consider this example:
276
276
<value >host</value >
277
277
<value >port</value >
278
278
</option >
279
- <option name =" errorPath" >port</option >
280
279
<option name =" message" >This port is already in use on that host.</option >
280
+ <option name =" errorPath" >port</option >
281
281
</constraint >
282
282
</class >
283
283
@@ -300,8 +300,8 @@ Consider this example:
300
300
{
301
301
$metadata->addConstraint(new UniqueEntity([
302
302
'fields' => ['host', 'port'],
303
- 'errorPath' => 'port',
304
303
'message' => 'This port is already in use on that host.',
304
+ 'errorPath' => 'port',
305
305
]));
306
306
}
307
307
}
0 commit comments