title: VS Code + PHP Intelephense + Remote-SSH + Symfony 3 : undefined method error
body: <p>I'm discovering VS Code, I am a complete newbie with this code editor, before I used Atom but I want to use VS Code which looks very cool!</p>
  <p>I have a Symfony 3 project on a Linux server and I want to directly modify its files because it's a dev environment. I don't want to have a local copy.</p>
  <p>So, I installed VS Code on my PC and I downloaded Remote-SSH and PHP Intelephense extensions. After several problem, I managed to make it work but I have a lot of issues inside my Controllers because PHP Intelephense doesn't recognize a lot of methods whereas it should do.</p>
  <p>I turned off the built-in PHP Language Features of VS Code.</p>
  <p>For example, here are some undefined methods :</p>
  <p>It doesn't recognize <code>$repository-&gt;createQueryBuilder()</code> or <code>$em-&gt;createQuery()</code> or custom functions inside <code>Repository</code> class of entities. It doesn't recognize some functions defined inside the Controller itself whereas they are correctly defined.
  It doesn't recognize the Symfony basic repository methods like <code>$repo-&gt;findOneByProperty()</code>, etc.</p>
  <p>So my files are full of errors while everything is normal! ^^</p>
  <p>Can someone help me ? If Remote-SSH isn't the best extension, maybe you can advise me another one ? Same thing for Intelephense ?</p>