validation.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" ?>
  2. <constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
  5. <class name="Symfony\Component\Form\Form">
  6. <constraint name="Callback">
  7. <value>
  8. <value>Symfony\Component\Form\Validator\DelegatingValidator</value>
  9. <value>validateFormData</value>
  10. </value>
  11. </constraint>
  12. <property name="children">
  13. <constraint name="Valid" />
  14. </property>
  15. </class>
  16. <class name="Symfony\Component\Form\RepeatedField">
  17. <getter property="firstEqualToSecond">
  18. <constraint name="True">
  19. <option name="message">The two values should be equal</option>
  20. </constraint>
  21. </getter>
  22. </class>
  23. <class name="Symfony\Component\Form\DateField">
  24. <getter property="partiallyFilled">
  25. <constraint name="False">
  26. <option name="message">The date is not fully selected</option>
  27. </constraint>
  28. </getter>
  29. <getter property="yearWithinRange">
  30. <constraint name="True">
  31. <option name="message">The year is invalid</option>
  32. </constraint>
  33. </getter>
  34. <getter property="monthWithinRange">
  35. <constraint name="True">
  36. <option name="message">The month is invalid</option>
  37. </constraint>
  38. </getter>
  39. <getter property="dayWithinRange">
  40. <constraint name="True">
  41. <option name="message">The day is invalid</option>
  42. </constraint>
  43. </getter>
  44. </class>
  45. <class name="Symfony\Component\Form\TimeField">
  46. <getter property="partiallyFilled">
  47. <constraint name="False">
  48. <option name="message">The time is not fully selected</option>
  49. </constraint>
  50. </getter>
  51. <getter property="hourWithinRange">
  52. <constraint name="True">
  53. <option name="message">The hour is invalid</option>
  54. </constraint>
  55. </getter>
  56. <getter property="minuteWithinRange">
  57. <constraint name="True">
  58. <option name="message">The minutes are invalid</option>
  59. </constraint>
  60. </getter>
  61. <getter property="secondWithinRange">
  62. <constraint name="True">
  63. <option name="message">The seconds are invalid</option>
  64. </constraint>
  65. </getter>
  66. </class>
  67. <class name="Symfony\Component\Form\FileField">
  68. <getter property="iniSizeExceeded">
  69. <constraint name="False">
  70. <option name="message">The file is too large. Please upload a smaller file</option>
  71. </constraint>
  72. </getter>
  73. <getter property="formSizeExceeded">
  74. <constraint name="False">
  75. <option name="message">The file is too large. Please upload a smaller file</option>
  76. </constraint>
  77. </getter>
  78. <getter property="uploadComplete">
  79. <constraint name="True">
  80. <option name="message">The file was only partially uploaded. Please try again</option>
  81. </constraint>
  82. </getter>
  83. </class>
  84. </constraint-mapping>