title: Symfony2 Production CSS/JS includes throwing 404 (may be a parent issue)
body: <p>I am writing a Bundle to theme a site we are developing.  The other Bundles call on a Core bundle for templating via Twig, and this Themeing bundle warps that core bundle.</p>
  
  <p>I have done this by implementing the getParent() method inside the theme bundle class to return the name of the core bundle, thus causing Symfony2 to look in the theme bundle (for basically ANY file) before looking in the Core bundle.</p>
  
  <p>Now, this works great in Dev mode, however, when I try in Production Mode, and my CSS/JS files are combined into one, the resulting path resolves to a 404 page, and all styling is lost.</p>
  
  <p>I have cleared both dev and production cache, as well as <code>rm -rf</code>'d the dev and prod directories.  Calling <code>php app/console assetic:dump --env=prod --no-debug</code> returns:</p>
  
  <pre><code>$ php app/console assetic:dump --env=prod --no-debug
  Dumping all prod assets.
  Debug mode is off.
  
  10:25:40 [file+] /webapps/xxxbundle/app/../web/css/f996955.css
  10:25:46 [file+] /webapps/xxxbundle/app/../web/js/f307b3f.js
  10:26:05 [file+] /webapps/xxxbundle/app/../web/css/55d26a0.css
  10:26:05 [file+] /webapps/xxxbundle/app/../web/js/ccfc30e.js
  
  
  
    [RuntimeException]
    The source file "/webapps/xxxclient/app/../web/bundles/xxxbundle/js/modernizer.custom.96376.js"
    does not exist.
  
  
  
  assetic:dump [--watch] [--force] [--period="..."] [write_to]
  </code></pre>
  
  <p>The web facing css and js dirs show:</p>
  
  <pre><code>$ ls web/css
  55d26a0.css  f996955.css
  $ ls web/js
  f307b3f.js
  </code></pre>
  
  <p>The missing JS file is likely due to another bundle that isn't being used.  The main issue is, the template is looking for:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" media="screen" href="/css/2a6fc23.css"&gt;
  &lt;script src="/js/adf6a7a.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Neither of which exist.  Any ideas or directions?</p>
  
  <p>[[ EDIT ]]</p>
  
  <p>On further review, even the assetic production cache references these files, and yet they are never created...  why? ....</p>
  
  <p>[[ TEMPLATES ]]</p>
  
  <p>(Overwritten Template)</p>
  
  <pre><code>{% extends 'FrontBundle:Frame:base.html.twig' %}
  {% block title %}{{ page.title }}{% endblock %}
  
  {% block wrapper %}
  
      {# route: {{ route }} #}
  
      {{ rendered | raw }}
  
  {% endblock %}
  </code></pre>
  
  <p>(Overwriting Template)</p>
  
  <pre><code>{% extends 'SkinBundle::layout.html.twig' %}
  
  {# Site Name #}
  {% block site_name %}
      {{ page.title }} | {{ parent() }}
  {% endblock %}
  </code></pre>
  
  <p>Layout extends a base template which is just a shell of a site, in the process overwritting lets say CSS like:</p>
  
  <pre><code>{% extends 'FrontBundle:Frame:default.html.twig' %}
  {# Stylesheets #}
  {% block stylesheets %}
  {# no execute {{ parent() }}#}
  {% stylesheets
      filter='cssrewrite'
      'bundles/core/css/normalize.css'
      'bundles/skin/css/main.css'
      %}
          &lt;link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}"&gt;
      {% endstylesheets %}
  {% endblock %}
  </code></pre>
  
  <p>Which is declared in the Base template as:</p>
  
  <pre><code>        {# Stylesheets #}
          {% block stylesheets %}
              {% stylesheets
                  filter='cssrewrite'
                  'bundles/core/css/normalize.css'
                  'bundles/front/css/global.css'
                  'bundles/page/css/page.css'
              %}
              &lt;link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}"&gt;
              {% endstylesheets %}
              &lt;!-- Page --&gt;
          {% endblock %}
  </code></pre>
  
  <p>These style-sheets are not needed, which is why I have parent() wrapped in comment tags.  Removing the line entirely doesn't help.</p>