Skip to content

Commit 20c2531

Browse files
committed
Merge pull request #1089 from ClementGautier/patch-1
Added FOS message to the propel validation
2 parents a12abfa + bf58627 commit 20c2531

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Resources/config/validation/propel.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<class name="FOS\UserBundle\Propel\User">
88
<constraint name="Propel\PropelBundle\Validator\Constraints\UniqueObject">
99
<option name="fields">username_canonical</option>
10-
<!-- PropelBundle does not support custom messages yet
11-
<option name="message">fos_user.username.already_used</option>-->
10+
<option name="message">fos_user.username.already_used</option>
1211
<option name="groups">
1312
<value>Registration</value>
1413
<value>Profile</value>
@@ -17,8 +16,7 @@
1716

1817
<constraint name="Propel\PropelBundle\Validator\Constraints\UniqueObject">
1918
<option name="fields">email_canonical</option>
20-
<!-- PropelBundle does not support custom messages yet
21-
<option name="message">fos_user.email.already_used</option>-->
19+
<option name="message">fos_user.email.already_used</option>
2220
<option name="groups">
2321
<value>Registration</value>
2422
<value>Profile</value>

0 commit comments

Comments
 (0)