Skip to content

Commit

Permalink
[Form] Removed obsolete constraints from validation.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Apr 18, 2011
1 parent 325049a commit eb21dc9
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions src/Symfony/Component/Form/Resources/config/validation.xml
Expand Up @@ -15,76 +15,4 @@
<constraint name="Valid" />
</property>
</class>

<class name="Symfony\Component\Form\RepeatedField">
<getter property="firstEqualToSecond">
<constraint name="True">
<option name="message">The two values should be equal</option>
</constraint>
</getter>
</class>

<class name="Symfony\Component\Form\DateField">
<getter property="partiallyFilled">
<constraint name="False">
<option name="message">The date is not fully selected</option>
</constraint>
</getter>
<getter property="yearWithinRange">
<constraint name="True">
<option name="message">The year is invalid</option>
</constraint>
</getter>
<getter property="monthWithinRange">
<constraint name="True">
<option name="message">The month is invalid</option>
</constraint>
</getter>
<getter property="dayWithinRange">
<constraint name="True">
<option name="message">The day is invalid</option>
</constraint>
</getter>
</class>

<class name="Symfony\Component\Form\TimeField">
<getter property="partiallyFilled">
<constraint name="False">
<option name="message">The time is not fully selected</option>
</constraint>
</getter>
<getter property="hourWithinRange">
<constraint name="True">
<option name="message">The hour is invalid</option>
</constraint>
</getter>
<getter property="minuteWithinRange">
<constraint name="True">
<option name="message">The minutes are invalid</option>
</constraint>
</getter>
<getter property="secondWithinRange">
<constraint name="True">
<option name="message">The seconds are invalid</option>
</constraint>
</getter>
</class>

<class name="Symfony\Component\Form\FileField">
<getter property="iniSizeExceeded">
<constraint name="False">
<option name="message">The file is too large. Please upload a smaller file</option>
</constraint>
</getter>
<getter property="formSizeExceeded">
<constraint name="False">
<option name="message">The file is too large. Please upload a smaller file</option>
</constraint>
</getter>
<getter property="uploadComplete">
<constraint name="True">
<option name="message">The file was only partially uploaded. Please try again</option>
</constraint>
</getter>
</class>
</constraint-mapping>

0 comments on commit eb21dc9

Please sign in to comment.