123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?xml version="1.0" ?>
- <constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping
- http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
-
- <class name="FOS\UserBundle\Model\User">
-
- <property name="username">
- <constraint name="NotBlank">
- <option name="message">fos_user.username.blank</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.username.short</option>
- <option name="max">255</option>
- <option name="maxMessage">fos_user.username.long</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- </property>
-
- <property name="email">
- <constraint name="NotBlank">
- <option name="message">fos_user.email.blank</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.email.short</option>
- <option name="max">254</option>
- <option name="maxMessage">fos_user.email.long</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- <constraint name="Email">
- <option name="message">fos_user.email.invalid</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- </property>
-
- <property name="plainPassword">
- <constraint name="NotBlank">
- <option name="message">fos_user.password.blank</option>
- <option name="groups">Registration</option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.password.short</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- </property>
- </class>
-
- <class name="FOS\UserBundle\Form\Model\ChangePassword">
- <property name="new">
- <constraint name="NotBlank">
- <option name="message">fos_user.new_password.blank</option>
- <option name="groups">
- <value>ChangePassword</value>
- <value>ResetPassword</value>
- </option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.new_password.short</option>
- <option name="groups">
- <value>ChangePassword</value>
- <value>ResetPassword</value>
- </option>
- </constraint>
- </property>
- </class>
-
- <class name="FOS\UserBundle\Model\Group">
- <property name="name">
- <constraint name="NotBlank">
- <option name="message">fos_user.group.blank</option>
- <option name="groups">Registration</option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.group.short</option>
- <option name="max">255</option>
- <option name="maxMessage">fos_user.group.long</option>
- <option name="groups">Registration</option>
- </constraint>
-
- </property>
- </class>
-
- <!-- Propel classes. This should stay in sync with the Model classes -->
-
- <class name="FOS\UserBundle\Propel\User">
-
- <property name="username">
- <constraint name="NotBlank">
- <option name="message">fos_user.username.blank</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.username.short</option>
- <option name="max">255</option>
- <option name="maxMessage">fos_user.username.long</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- </property>
-
- <property name="email">
- <constraint name="NotBlank">
- <option name="message">fos_user.email.blank</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.email.short</option>
- <option name="max">255</option>
- <option name="maxMessage">fos_user.email.long</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- <constraint name="Email">
- <option name="message">fos_user.email.invalid</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- </property>
-
- <property name="plainPassword">
- <constraint name="NotBlank">
- <option name="message">fos_user.password.blank</option>
- <option name="groups">Registration</option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.password.short</option>
- <option name="groups">
- <value>Registration</value>
- <value>Profile</value>
- </option>
- </constraint>
- </property>
- </class>
-
- <class name="FOS\UserBundle\Propel\Group">
- <property name="name">
- <constraint name="NotBlank">
- <option name="message">fos_user.group.blank</option>
- <option name="groups">Registration</option>
- </constraint>
- <constraint name="Length">
- <option name="min">2</option>
- <option name="minMessage">fos_user.group.short</option>
- <option name="max">255</option>
- <option name="maxMessage">fos_user.group.long</option>
- <option name="groups">Registration</option>
- </constraint>
- </property>
- </class>
-
- </constraint-mapping>
|