Closed
Description
I have the following entity property:
/**
* @var string
*
* @ORM\Column(name="headline", type="string", length=128)
* @Assert\NotBlank()
* @Assert\Length(min="5", max="128")
*/
private $headline;
form component generate the following html:
<input type="text" id="xxx_headline" name="xxx[headline]" required="required" pattern=".{5,}">
I suppose the fix should be done here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php#L223
There also could be added maxlength
html option.