title: PhpStorm Doesn't Recognize Doctrine Entity Classes
body: <p>PhpStorm doesn't seem to recognize any of my Doctrine entity classes or their methods. </p>
  
  <pre><code>$comment = $em-&gt;getRepository('MyBundle:Comment')-&gt;findOneBy(array('id' =&gt; $id));
  
  $comment-&gt;getId(); 
  /* PHPSTORM THROWS WARNING: Method getId() not found in subject class */
  </code></pre>
  
  <p>The error goes away, only when I explicitly comment it - which really clutters my controller.</p>
  
  <pre><code>/* @var \MyBundle\Entity\Comment $comment */
  $comment = $em-&gt;getRepository('MyBundle:Comment')-&gt;findOneBy(array('id' =&gt; $id));
  </code></pre>
  
  <p>Is there a way to document this for PhpStorm in my Entity Class?</p>
  
  <p>I'm using the Symfony2 plugin with PhpStorm 8.  Thanks!</p>