title: MappingException with Doctrine ORM - Class does not exist
body: <p>I am using Doctrine 2.6.2 in my PHP project. The Schema was created successfully with the ORM-Tool, but on runtime, a MappingException is thrown.</p>
  
  <p>I still cannot make sense out of the Exception Error message "Class 'credentials' does not exist in ..." because I don't know about doctrines internals.</p>
  
  <p>my composer.json file:</p>
  
  <pre><code>{
      "require": {
          "doctrine/orm": "^2.6.2",
          "symfony/yaml": "2.*"
      },
      "autoload": {
          "psr-0": {"": "src/"}
      }
  }
  </code></pre>
  
  <p>I tried to change some phpdoc annotations and reset the schema multiple times.</p>
  
  <p>Does someone has experienced similar issues with doctrine? I'd love some hint about this, because I'm not even sure if this problem is caused by my PHP code files or maybe by some misconfiguration of the orm tool I'm using, or most probably by something I didn't think of yet.</p>
  
  <pre class="lang-php prettyprint-override"><code>/**
   * @Entity @Table(name="credentials")
   */
  class Credentials
  {
  
      /** @Id @Column(type="integer") @GeneratedValue **/
      protected $id;
  
      /** @Column(type="string") **/
      public $Email;
  
      /** @Column(type="string") **/
      public $Loginname;
  
      /** @Column(type="string") **/
      public $EntropyString;
  
      /** @Column(type="string") **/
      public $AccessToken;
  
  
      public function __construct()
      {
  
      }
  
      public function getId()
      {
          return $this-&gt;id;
      }
  
  }
  </code></pre>
  
  <p>Here is the full Response from apache:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught
    Doctrine\Common\Persistence\Mapping\MappingException: Class
    'credentials' does not exist in
    F:\XAMPP\httpd.private\src\php\vendor\doctrine\persistence\lib\Doctrine\Common\Persistence\Mapping\MappingException.php:93
    Stack trace: #0
    F:\XAMPP\httpd.private\src\php\vendor\doctrine\persistence\lib\Doctrine\Common\Persistence\Mapping\RuntimeReflectionService.php(24):
    Doctrine\Common\Persistence\Mapping\MappingException::nonExistingClass('credentials')</p>
    
    <h1>1 F:\XAMPP\httpd.private\src\php\vendor\doctrine\persistence\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(250):</h1>
    
    <p>Doctrine\Common\Persistence\Mapping\RuntimeReflectionService->getParentClasses('credentials')</p>
    
    <h1>2 F:\XAMPP\httpd.private\src\php\vendor\doctrine\persistence\lib\Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory.php(283):</h1>
    
    <p>Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses('credentials')</p>
    
    <h1>3 F:\XAMPP\httpd.private\src\php\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\ClassMetadat</h1>
    
    <p>in
    F:\XAMPP\httpd.private\src\php\vendor\doctrine\persistence\lib\Doctrine\Common\Persistence\Mapping\MappingException.php
    on line 93</p>
  </blockquote>
  
  <p>the error occurs on a call to EntityManager's Find method:</p>
  
  <pre class="lang-php prettyprint-override"><code>$this-&gt;credentials = $this-&gt;entityManager-&gt;Find('credentials', $result[0]["id"]);
  </code></pre>