<pre>
<span style="background-color:#f7faff; color:#660000">$tContenido </span><span style="background-color:#f7faff">= </span><strong>new </strong><span style="background-color:#f7faff">Tcontenido();
</span><strong>if</strong><span style="background-color:#f7faff">(</span><span style="background-color:#f7faff; color:#660000">$idTipo </span><span style="background-color:#f7faff">== </span><span style="background-color:#f7faff; color:#0000ff">1</span><span style="background-color:#f7faff">)
</span><span style="background-color:#f7faff">    </span><span style="background-color:#f7faff; color:#660000">$form </span><span style="background-color:#f7faff">= </span><span style="background-color:#f7faff; color:#660000">$this</span><span style="background-color:#f7faff">-&gt;createForm(</span><strong>&#39;AppBundle\Form\TContenidoVideoType&#39;</strong><span style="background-color:#f7faff">, </span><span style="background-color:#f7faff; color:#660000">$tContenido</span><span style="background-color:#f7faff">);
</span><strong>if</strong><span style="background-color:#f7faff">(</span><span style="background-color:#f7faff; color:#660000">$idTipo </span><span style="background-color:#f7faff">== </span><span style="background-color:#f7faff; color:#0000ff">2</span><span style="background-color:#f7faff">)
</span><span style="background-color:#f7faff">    </span><span style="background-color:#f7faff; color:#660000">$form </span><span style="background-color:#f7faff">= </span><span style="background-color:#f7faff; color:#660000">$this</span><span style="background-color:#f7faff">-&gt;createForm(</span><strong>&#39;AppBundle\Form\TContenidoArticuloType&#39;</strong><span style="background-color:#f7faff">, </span><span style="background-color:#f7faff; color:#660000">$tContenido</span><span style="background-color:#f7faff">);
</span><strong>if</strong><span style="background-color:#f7faff">(</span><span style="background-color:#f7faff; color:#660000">$idTipo </span><span style="background-color:#f7faff">== </span><span style="background-color:#f7faff; color:#0000ff">3</span><span style="background-color:#f7faff">)
</span><span style="background-color:#f7faff">    </span><span style="background-color:#f7faff; color:#660000">$form </span><span style="background-color:#f7faff">= </span><span style="background-color:#f7faff; color:#660000">$this</span><span style="background-color:#f7faff">-&gt;createForm(</span><strong>&#39;AppBundle\Form\TContenidoPDFType&#39;</strong><span style="background-color:#f7faff">, </span><span style="background-color:#f7faff; color:#660000">$tContenido</span><span style="background-color:#f7faff">);</span></pre>