Symfony2 Field Type Guessing: When is <textarea> chosen (over <input type="text">)?
<p>Not declaring the field type brings the advantage that Symfony infers the <code>required</code> and <code>maxlength</code> attribute from validation rules, as explained here: <a href="http://symfony.com/doc/current/book/forms.html#field-type-options-guessing" rel="nofollow">http://symfony.com/doc/current/book/forms.html#field-type-options-guessing</a></p>

<p>However, I can't find a way to make Symfony 2.8.2 "guess" a <code>&lt;textarea&gt;</code> instead of an <code>&lt;input type="text"&gt;</code> :-(</p>

<p>My first idea was to increase the allowed length, but even with <code>Length: max: 100000</code> in validation.yml, Symfony is unimpressed and just gives me <code>&lt;input type="text" maxlength="100000" /&gt;</code>.</p>

<p>EDIT: @chalasr: I'm talking about an entity which is <strong>not</strong> mapped to the database. Sorry for not mentioning that earlier!</p>