title: VichUploaderBundle twig Unable to get filename property value: "image"
body: <p>I´m having problems using VichUploaderBundle. Uploads files correctly, but when I write</p>
  
  <pre><code>&lt;td&gt;&lt;img src="&lt;img src="{{ vich_uploader_asset(entity, 'image') }}" alt="{{ entity.nombre }}" /&gt;"&lt;/td&gt;
  </code></pre>
  
  <p>to display an uploaded picture, I have this error:</p>
  
  <pre><code>An exception has been thrown during the rendering of a template ("Unable to get filename property value: "image"") in SuperlineaBundle:Instruccion:index.html.twig at line 21.
  </code></pre>
  
  <p>I tried to get helper on the controller and it works:</p>
  
  <pre><code>$helper = $this-&gt;container-&gt;get('vich_uploader.templating.helper.uploader_helper');
  $path = $helper-&gt;asset($entities[0], 'image');
  ladybug_dump( $path );
  </code></pre>
  
  <p>Displays: string(25) "/images/uploads/video.png"</p>
  
  <p>Any help or clue?</p>
  
  <p>This is my entity: <a href="http://pastebin.com/d8X72zK4" rel="nofollow">http://pastebin.com/d8X72zK4</a>
  This is my config: </p>
  
  <pre><code>vich_uploader:
      db_driver: orm
      twig: true
      gaufrette: false # set to true to enable gaufrette support
      storage: vich_uploader.storage.file_system
      mappings:
          uploads:
              uri_prefix: /images/uploads
              upload_destination: %kernel.root_dir%/../web/images/uploads
              namer: ~ # specify a file namer service id for this entity, null default
              directory_namer: ~ # specify a directory namer service id for this entity, null default
              delete_on_remove: true # determines whether to delete file upon removal of entity
              inject_on_load: true # determines whether to inject a File instance upon load
          pdfs:
              uri_prefix: /images/pdf
              upload_destination: %kernel.root_dir%/../web/images/pdf
              namer: ~ # specify a file namer service id for this entity, null default
              directory_namer: ~ # specify a directory namer service id for this entity, null default
              delete_on_remove: true # determines whether to delete file upon removal of entity
              inject_on_load: true # determines whether to inject a File instance upon load
  </code></pre>
  
  <p>And this is my twig template:
  ...</p>
  
  <pre><code>{% for entity in entities %}
          &lt;tr&gt;
              &lt;td&gt;&lt;a href="{{ path('instruccion_show', { 'id': entity.id }) }}"&gt;{{ entity.id }}&lt;/a&gt;&lt;/td&gt;
              &lt;td&gt;{{ entity.nombre }}&lt;/td&gt;
              &lt;td&gt;{{ entity.foto }}&lt;img src="&lt;img src="{{ vich_uploader_asset(entity, 'image') } }" alt="{{ entity.nombre }}" /&gt;"&lt;/td&gt;
              &lt;td&gt;{{ entity.video }}&lt;/td&gt;
              &lt;td&gt;
                  &lt;ul&gt;
                      &lt;li&gt;
                          &lt;a href="{{ path('instruccion_show', { 'id': entity.id }) }}"&gt;show&lt;/a&gt;
                      &lt;/li&gt;
                      &lt;li&gt;
                          &lt;a href="{{ path('instruccion_edit', { 'id': entity.id }) }}"&gt;edit&lt;/a&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      {% endfor %}
  </code></pre>