title: Symfony paramconverter object not found no 404
body: <p>I just discovered the ParamConverter syntax.</p>
  
  <p>Here is what <a href="http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/converters.html" rel="nofollow noreferrer">the doc</a> says : </p>
  
  <blockquote>
  <pre><code>use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
  
  /**
   * @Route("/blog/{id}")
   * @ParamConverter("post", class="SensioBlogBundle:Post")
   */
  public function showAction(Post $post) {
  }
  </code></pre>
    
    <p>Several things happen under the hood:</p>
    
    <ul>
    <li>...</li>
    <li><strong>If no Post object is found, a 404 Response is generated</strong>; </li>
    <li>If a Post object is found, a new post request attribute is defined... </li>
    <li>...</li>
    </ul>
  </blockquote>
  
  <p>I tried this exact thing and it works fine if the id is known but if it is not then I get this Symfony error :</p>
  
  <blockquote>
    <p>AppBundle\Entity\MyCustomEntity object not found.</p>
  </blockquote>
  
  <p>Shouldn't I get a 404 Exception, which redirect me to my custom 404 page ?</p>
  
  <p>Additionnaly, I tried what <a href="https://stackoverflow.com/a/20284189/3888000">this post</a> suggested, but the condition is not even read, and the same exact "object not found" error is shown again.</p>
  
  <p>Is there any other way to get this working ?</p>