title: Controller method not found error in Symfony2
body: <p>I am working on Symfony2 PHP framework. I am writing raw sql queries for doctrine.</p>
  
  <p>But i am getting the following error,</p>
  
  <blockquote>
    <p>Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
        Controller method not found.</p>
  </blockquote>
  
  <pre><code> //controller
      class UsersController extends AdminController {
          use Doctrine\ORM\EntityManager;
  
          public function getCsv(){
            $stmt = $this-&gt;getDoctrine()-&gt;getEntityManager()
             -&gt;getConnection()
              -&gt;prepare('select * from assets');
              $stmt-&gt;execute();
              $result = $stmt-&gt;fetchAll();
              print_r($result);
  
              exit;   
        }
      }  
  </code></pre>
  
  <p>It is working, if I use directly in this way:</p>
  
  <pre><code>$assets = Asset::orderBy('created_at', 'DESC')-&gt;get();
  </code></pre>