title: How can I get data from the view with Doctrine and createQueryBuilder?
body: <p>I need do a sql query for a view in the databse for get data I use the follow code:</p>
  
  <pre><code>$qb= $this-&gt;getEntityManager()-&gt;createQueryBuilder();
          return $qb-&gt;select('count(c)')
                  -&gt;from('AppsBundle:Apps_View', 'c')
                  -&gt;getQuery()-&gt;getSingleScalarResult();
  </code></pre>
  
  <p>This query fails:</p>
  
  <ol>
  <li>I have not an Entity for <code>Apps_Views</code>, <code>s</code></li>
  <li>The entities were generated with the console.</li>
  </ol>
  
  <p>Any idea?</p>