<p dir="auto">I'm experiencing an error with Symfony 2.2.3 (I had to move back to 2.2.2) when clearing cache</p>
<p dir="auto">php app/console -v cache:clear<br>
Clearing the cache for the dev environment with debug true</p>
<p dir="auto">[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]</p>
<p dir="auto">You cannot create a service ("request") of an inactive scope ("request").</p>
<p dir="auto">Exception trace:<br>
() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:2051<br>
ap_DevDebugProjectContainer-&gt;getRequestService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br>
Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:1544<br>
ap_DevDebugProjectContainer-&gt;getFragment_HandlerService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br>
Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:3324<br>
ap_DevDebugProjectContainer-&gt;getTwigService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br>
Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/app/cache/de_/ap_DevDebugProjectContainer.php:307<br>
ap_DevDebugProjectContainer-&gt;getAssetic_AssetManagerService() at /Users/patricklock/Sites/cplus-security/app/bootstrap.php.cache:129<br>
Symfony\Component\DependencyInjection\Container-&gt;get() at /Users/patricklock/Sites/cplus-security/vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetManagerCacheWarmer.php:33<br>
Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer-&gt;warmUp() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:47<br>
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate-&gt;warmUp() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:117<br>
Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand-&gt;warmup() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:83<br>
Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand-&gt;execute() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244<br>
Symfony\Component\Console\Command\Command-&gt;run() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:899<br>
Symfony\Component\Console\Application-&gt;doRunCommand() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:184<br>
Symfony\Component\Console\Application-&gt;doRun() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80<br>
Symfony\Bundle\FrameworkBundle\Console\Application-&gt;doRun() at /Users/patricklock/Sites/cplus-security/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121<br>
Symfony\Component\Console\Application-&gt;run() at /Users/patricklock/Sites/cplus-security/app/console:22</p>
<p dir="auto">Hi developpers, and many thanks for your great job on symfony.</p>
<p dir="auto">Here is a bug I've notice on Symfony version 2.3.30</p>
<p dir="auto">I have:</p>
<ul dir="auto">
<li>In my form class:</li>
</ul>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class FicheReperageMotifType extends AbstractType {

    public function buildForm(FormBuilderInterface $builder, array $options) {
            ...
        $options = array('label' =&gt; 'The label:');
        $options['attr'] = array('rows' =&gt; '10', 'style' =&gt; &quot;width:100%; display:block&quot;);
        $builder-&gt;add(&quot;precisez&quot;, 'textarea', $options);
    }
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">FicheReperageMotifType</span> <span class="pl-k">extends</span> <span class="pl-v">AbstractType</span> {

    <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>) {
            <span class="pl-c1">.</span>.<span class="pl-c1">.</span>
        <span class="pl-s1"><span class="pl-c1">$</span>options</span> = <span class="pl-en">array</span>(<span class="pl-s">'label'</span> =&gt; <span class="pl-s">'The label:'</span>);
        <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'attr'</span>] = <span class="pl-en">array</span>(<span class="pl-s">'rows'</span> =&gt; <span class="pl-s">'10'</span>, <span class="pl-s">'style'</span> =&gt; "<span class="pl-s">width:100%; display:block</span>");
        <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>("<span class="pl-s">precisez</span>", <span class="pl-s">'textarea'</span>, <span class="pl-s1"><span class="pl-c1">$</span>options</span>);
    }
}</pre></div>
<ul dir="auto">
<li>In my entity class:</li>
</ul>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    /**
     *
     * @ORM\Column(name=&quot;precisez&quot;, type=&quot;string&quot;, length=5000, nullable=true)
     */
    private $precisez;"><pre class="notranslate">    <span class="pl-c">/**</span>
<span class="pl-c">     *</span>
<span class="pl-c">     * @ORM\Column(name="precisez", type="string", length=5000, nullable=true)</span>
<span class="pl-c">     */</span>
    <span class="pl-k">private</span> <span class="pl-s1"><span class="pl-c1">$</span>precisez</span>;</pre></div>
<ul dir="auto">
<li>
<p dir="auto">In my twig template:</p>
<pre class="notranslate">{{ form(form) }}
</pre>
</li>
<li>
<p dir="auto">The final HTML render is:</p>
</li>
</ul>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;textarea id=&quot;FicheReperage_motif_precisez&quot; name=&quot;FicheReperage[motif][precisez]&quot; required=&quot;required&quot; rows=&quot;10&quot; style=&quot;width:100%; display:block&quot;&gt;precisez&lt;/textarea&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">textarea</span> <span class="pl-c1">id</span>="<span class="pl-s">FicheReperage_motif_precisez</span>" <span class="pl-c1">name</span>="<span class="pl-s">FicheReperage[motif][precisez]</span>" <span class="pl-c1">required</span>="<span class="pl-s">required</span>" <span class="pl-c1">rows</span>="<span class="pl-s">10</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:100%; display:block</span>"<span class="pl-kos">&gt;</span>precisez<span class="pl-kos">&lt;/</span><span class="pl-ent">textarea</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">As you can see the field is required, but nullable=true. Therefore this field should not be required.</p>
<ul dir="auto">
<li>If I leave symfony decide itself the field type by setting:</li>
</ul>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="        $options = array('label' =&gt; 'The label:');
        $options['attr'] = array('rows' =&gt; '10', 'style' =&gt; &quot;width:100%; display:block&quot;);
        $builder-&gt;add(&quot;precisez&quot;, null, $options);"><pre class="notranslate">        <span class="pl-s1"><span class="pl-c1">$</span>options</span> = <span class="pl-en">array</span>(<span class="pl-s">'label'</span> =&gt; <span class="pl-s">'The label:'</span>);
        <span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'attr'</span>] = <span class="pl-en">array</span>(<span class="pl-s">'rows'</span> =&gt; <span class="pl-s">'10'</span>, <span class="pl-s">'style'</span> =&gt; "<span class="pl-s">width:100%; display:block</span>");
        <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>("<span class="pl-s">precisez</span>", <span class="pl-c1">null</span>, <span class="pl-s1"><span class="pl-c1">$</span>options</span>);</pre></div>
<p dir="auto">I have the following HTML render:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input type=&quot;text&quot; id=&quot;FicheReperage_motif_precisez&quot; name=&quot;FicheReperage[motif][precisez]&quot; maxlength=&quot;5000&quot; rows=&quot;10&quot; style=&quot;width:100%; display:block&quot; value=&quot;precisez&quot;&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">id</span>="<span class="pl-s">FicheReperage_motif_precisez</span>" <span class="pl-c1">name</span>="<span class="pl-s">FicheReperage[motif][precisez]</span>" <span class="pl-c1">maxlength</span>="<span class="pl-s">5000</span>" <span class="pl-c1">rows</span>="<span class="pl-s">10</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:100%; display:block</span>" <span class="pl-c1">value</span>="<span class="pl-s">precisez</span>"<span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">And this time it is correct.</p>
<p dir="auto">Please let me know if you need more information.</p>
<p dir="auto">Best regards,</p>