title: Why does my variable exists in a block and not in an other one?
body: <p>I have a template with the variable 'category'. </p>
  
  <p>At some point I send this variable to an embedded template like so :</p>
  
  <pre><code>{% embed "AtgpTrackerBundle:Ticket:/_list.html.twig" with {"table": table, "category": category} %}
  </code></pre>
  
  <p>This _list template extends from a defaultTable template :</p>
  
  <pre><code>{% extends "AtgpTrackerBundle::Table/_defaultTable.html.twig" %}
  </code></pre>
  
  <p>which features some blocks :</p>
  
  <pre><code>&lt;thead&gt;
      {% block tableHead %}
          &lt;tr&gt;
              //some code
          &lt;/tr&gt;
      {% endblock tableHead %}
  &lt;/thead&gt;    
  &lt;tbody id="{{ table.bodyId }}"&gt;
      {% block tableBody %}
          //some code
      {% endblock tableBody %}
  &lt;/tbody&gt;
  </code></pre>
  
  <p>So, In the _list template, I overwrite some blocks, using the 'category' variable. </p>
  
  <p>Everything works fine when I use the category in the tableHead block. When I use it in tableBody, I have the "variable category doesn't exist" exception.</p>
  
  <p>What is triggering me, is that when i try to dump the category in the tableBody block, it actually shows ! But I still have the error, pointing me the line where I wrote the dump.</p>
  
  <p>EDIT to make my question clearer : For instance if I try to overwrite the blocks above like that :</p>
  
  <pre><code>{% block tableHead %}
      {{dump(category)}}
      {{category}}
  {% endblock %}
  
  {% block tableBody %}
      {{dump(category)}}
      {{category}}  
  {% endblock %}
  </code></pre>
  
  <p>Both dump work fine, but the second one sends an exception "variable category doesn't exist" and the line after is not being processed. I seems like I just can't use the category in the tableBody block.</p>
  
  <p>I can't figure out how to explain this behaviour, which seems really strange to me... </p>