title: Fatal error in Doctrine\ORM\Proxy\ProxyFactory::getProxy()
body: <p>Hey I am working on a symfony2 project and trying to create routes using annotations but I am getting an error but when I use to define routes from routes.yml file everything works fine but causing a problem with annotations
  The error is </p>
  
  <blockquote>
    <p>Fatal error: Doctrine\ORM\Proxy\ProxyFactory::getProxy() [function.require]: Failed opening required 'C:/wamp/www/idp_svn/app/cache/dev/doctrine/orm/Proxies\MunichInnovationGroupPatentBundleEntityUmUsersProxy.php' (include_path='.;C:\php\pear') in C:\wamp\www\idp_svn\vendor\doctrine\lib\Doctrine\ORM\Proxy\ProxyFactory.php on line 85</p>
  </blockquote>
  
  <p>My app/congig/route.yml is </p>
  
  <pre><code> MunichInnovationGroupPatentBundle:
    resource: "@MunichInnovationGroupPatentBundle/Controller/"
    type:     annotation
    prefix:   /
    defaults:  { _controller: "MunichInnovationGroupPatentBundle:Default:index" }
  
    MunichInnovationGroupBundle:
     resource: "@MunichInnovationGroupBundle/Controller/"
     type:     annotation
     prefix:   /v1
     defaults:  { _controller: "MunichInnovationGroupBundle:Patent:index" }
  
     login_check:
      pattern:   /login_check
  
     logout:
      pattern:   /logout
  </code></pre>
  
  <p>In my controller</p>
  
  <pre><code>  &lt;?php
    namespace MunichInnovationGroup\PatentBundle\Controller;
  
    use Symfony\Component\HttpFoundation\Response;
    use Symfony\Component\HttpFoundation\Request;
    use JMS\SecurityExtraPatentBundle\Annotation\Secure;
    use Symfony\Component\Security\Core\Exception\AccessDeniedException;
    use Symfony\Bundle\FrameworkBundle\Controller\Controller;
    use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
    use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
    use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
    use Symfony\Component\Security\Core\SecurityContext;
  
    use MunichInnovationGroup\PatentBundle\Entity\Log;
    use MunichInnovationGroup\PatentBundle\Entity\UserPatent;
    use MunichInnovationGroup\PatentBundle\Entity\PmPortfolios;
    use MunichInnovationGroup\PatentBundle\Entity\UmUsers;
    use MunichInnovationGroup\PatentBundle\Entity\PmPatentgroups;
    use MunichInnovationGroup\PatentBundle\Form\PortfolioType;
    use MunichInnovationGroup\PatentBundle\Util\SecurityHelper;
    use Exception;
    /**
     * Portfolio controller.
     * @Route("/portfolio")
   */
   class PortfolioController extends Controller {
   /**
    * Index action.
    *
    * @Route("/", name="v2_pm_portfolio")
    * @Template("MunichInnovationGroupPatentBundle:Portfolio:index.html.twig")
  */
  public function indexAction(Request $request) {
  $em = $this-&gt;getDoctrine()-&gt;getEntityManager("pp_userdata");
  $em-&gt;getRepository('MunichInnovationGroupPatentBundle:PmPortfolios')
  -&gt;findBy(array('user' =&gt; '$user_id'));
  
         // rest of the method
  }
  </code></pre>
  
  <p>Any ideas? What I am doing wrong?</p>
  
  <p>Thanks in advance</p>