<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>2.8.12</td>
</tr>
</tbody>
</table>
<p dir="auto">I created a FormType that extends the <code class="notranslate">AbstractType</code>. I have only a <code class="notranslate">buildForm</code> method in it which adds some fields. There are some fields which are other custom form types of mine, but those also only have the <code class="notranslate">buildForm</code> method, and if they have the <code class="notranslate">configureOptions</code> method, it's only to set a <code class="notranslate">data_class</code>.</p>
<p dir="auto">However, when opening the page which uses this form, I'm getting the warnings</p>
<blockquote>
<p dir="auto">The form option "read_only" is deprecated since version 2.8 and will be removed in 3.0. Use "attr['readonly']" instead.<br>
The "cascade_validation" option is deprecated since version 2.8 and will be removed in 3.0. Use "constraints" with a Valid constraint instead.<br>
The form option "csrf_provider" is deprecated since version 2.8 and will be removed in 3.0. Use "csrf_token_manager" instead.</p>
</blockquote>
<p dir="auto">But I'm not using any of these options. I'm even using the correct one for <code class="notranslate">cascade_validations</code>. These are the options of one form field I'm adding</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[
    'data' =&gt; new Address(),
    'validation_groups' =&gt; ['productPreliminaryDeliveryAddress'],
    'mapped' =&gt; false,
    'constraints' =&gt; [new Valid()],
    'label' =&gt; false,
]"><pre class="notranslate"><code class="notranslate">[
    'data' =&gt; new Address(),
    'validation_groups' =&gt; ['productPreliminaryDeliveryAddress'],
    'mapped' =&gt; false,
    'constraints' =&gt; [new Valid()],
    'label' =&gt; false,
]
</code></pre></div>
<p dir="auto">As you can see I'm using the correct option for constraint. Where does that error come from and how can I supress it?</p>
<p dir="auto">When i use the forward request in my "action" the route name "app.request.attributes.get('_route')" is empty is that normal?</p>