Symfony EntityRepository return instance of "Proxies\__CG__ MyModelName"
<p>Query </p>

<pre><code>$em-&gt;getRepository($this-&gt;getRepositoryName('AppBundle:User'))-&gt;find($id);
</code></pre>

<p>return object instance of <code>Proxies\__CG__\AppBundle\Entity\User</code> instead of <code>AppBundle\Entity\User</code>. What the reason of this?</p>