File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments