class MaxLengthValidator implements BasicValidator
A validator for maximum string length.
Below is an example usage for your Propel xml schema file.
Note that if you have specified the size attribute in the column tag
you do not have to specify it as value in the validator rule again as
this is done automatically.
<code>
<column name="username" type="VARCHAR" size="25" required="true" />
<validator column="username">
<rule name="maxLength" message="Passwort must be at least ${value} characters !" />
</validator>
</code>
Methods
boolean | isValid(ValidatorMap $map, string $str) |