I am using the SF2 forms and validator bundle by themselves. Is there anyway to generate HTML attributes off annotations that are created with the symfony validator? For example:
Convert this -
/**
* @var
* @Assert\Length(min="2", max="2")
*/
protected $state;
into the HTML code
<input type="text" maxlength="2" ... >
Typically, I know that is set in SF2 by setting a size for the string in a Doctrine annotation, but I am using Aura.SQL to handle interaction with the database.
Thanks for any information!