title: Symfony Paginator, error @Enum
body: <p>I'm trying to add a pagination on a query with Doctrine and the Doctrine class Paginator : </p>
  
  <pre><code>    $qb = $this-&gt;_em-&gt;createQueryBuilder();
      $qb-&gt;select(array('a.id'))
              -&gt;from('MyProjectBundle:Account', 'a')
              -&gt;leftjoin('a.first', 'fd')
              -&gt;leftjoin('a.second', 'fr')
              -&gt;where('a != ?1')
              -&gt;setParameters(array(1 =&gt; $account))
              -&gt;setFirstResult(($page-1) * $per_page)
              -&gt;setMaxResults($per_page);
  </code></pre>
  
  <p>And like in the documentation for Paginator, i do : </p>
  
  <pre><code>return new Paginator($qb);
  </code></pre>
  
  <p>I have this error : </p>
  
  <pre><code>{
  
      "code": 500,
      "message": "[Semantical Error] The annotation \"@Enum\" in property Doctrine\\ORM\\Mapping\\GeneratedValue::$strategy was never imported. Did you maybe forget to add a \"use\" statement for this annotation?"
  
  }
  </code></pre>
  
  <p>I include <code>use Doctrine\ORM\Tools\Pagination\Paginator;</code> and i don't know why i have this error ?</p>