Skip to content

Commit d13e38c

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: fixed argument order for UniqueEntity
2 parents 78a9478 + fe927db commit d13e38c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/constraints/UniqueEntity.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ Consider this example:
188188
#[ORM\Entity]
189189
#[UniqueEntity(
190190
fields: ['host', 'port'],
191-
errorPath: 'port',
192191
message: 'This port is already in use on that host.',
192+
errorPath: 'port',
193193
)]
194194
class Service
195195
{
@@ -207,8 +207,8 @@ Consider this example:
207207
constraints:
208208
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity:
209209
fields: [host, port]
210-
errorPath: port
211210
message: 'This port is already in use on that host.'
211+
errorPath: port
212212
213213
.. code-block:: xml
214214
@@ -224,8 +224,8 @@ Consider this example:
224224
<value>host</value>
225225
<value>port</value>
226226
</option>
227-
<option name="errorPath">port</option>
228227
<option name="message">This port is already in use on that host.</option>
228+
<option name="errorPath">port</option>
229229
</constraint>
230230
</class>
231231
@@ -249,8 +249,8 @@ Consider this example:
249249
{
250250
$metadata->addConstraint(new UniqueEntity([
251251
'fields' => ['host', 'port'],
252-
'errorPath' => 'port',
253252
'message' => 'This port is already in use on that host.',
253+
'errorPath' => 'port',
254254
]));
255255
}
256256
}

0 commit comments

Comments
 (0)