title: Doctrine2 - "class" is not a valid entity or mapped super class
body: <p>I get exception <code>Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class "Users" is not a valid entity or mapped super class</code> every time when I run the next code:</p>
  
  <p><strong>test.php</strong></p>
  
  <pre><code>&lt;?php
  require_once "vendor/autoload.php";
  
  use Doctrine\ORM\Tools\Setup;
  use Doctrine\ORM\EntityManager;
  
  $paths = array(dirname(__FILE__)."/entities");
  $isDevMode = false;
  
  // the connection configuration
  $dbParams = array(
      'driver'   =&gt; 'pdo_mysql',
      'user'     =&gt; 'root',
      'password' =&gt; 'pass',
      'dbname'   =&gt; 'snabcentr',
  );
  
  $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
  $em = EntityManager::create($dbParams, $config);
  
  $user = $em-&gt;find("Users", 5);
  </code></pre>
  
  <p><strong>entities/Users.php</strong></p>
  
  <pre><code>&lt;?php
  use Doctrine\ORM\Mapping as ORM;
  
  /**
   * Users
   *
   * @ORM\Table(name="users")
   * @ORM\Entity
   */
  class Users
  {
      /**
       * @var integer
       *
       * @ORM\Column(name="id", type="integer", nullable=false)
       * @ORM\Id
       * @ORM\GeneratedValue(strategy="IDENTITY")
       */
      private $id;
  
      /**
       * @var string
       *
       * @ORM\Column(name="email", type="string", length=255, nullable=true)
       */
      private $email;
  
      /**
       * @var string
       *
       * @ORM\Column(name="password", type="string", length=255, nullable=true)
       */
      private $password;
  
      /**
       * @var string
       *
       * @ORM\Column(name="type", type="string", nullable=true)
       */
      private $type;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_inn", type="string", length=255, nullable=true)
       */
      private $clientInn;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_ogrn", type="string", length=255, nullable=true)
       */
      private $clientOgrn;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_rs", type="string", length=255, nullable=true)
       */
      private $clientRs;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_ks", type="string", length=255, nullable=true)
       */
      private $clientKs;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_bik", type="string", length=255, nullable=true)
       */
      private $clientBik;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_uaddress", type="string", length=255, nullable=true)
       */
      private $clientUaddress;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_faddress", type="string", length=255, nullable=true)
       */
      private $clientFaddress;
  
      /**
       * @var string
       *
       * @ORM\Column(name="client_daddress", type="string", length=255, nullable=true)
       */
      private $clientDaddress;
  
      /**
       * @var string
       *
       * @ORM\Column(name="name", type="string", length=255, nullable=true)
       */
      private $name;
  
      /**
       * @var string
       *
       * @ORM\Column(name="notes", type="text", nullable=true)
       */
      private $notes;
  
      /**
       * @var \DateTime
       *
       * @ORM\Column(name="added_date", type="datetime", nullable=true)
       */
      private $addedDate;
  
  
      /**
       * Get id
       *
       * @return integer 
       */
      public function getId()
      {
          return $this-&gt;id;
      }
  
      /**
       * Set email
       *
       * @param string $email
       * @return Users
       */
      public function setEmail($email)
      {
          $this-&gt;email = $email;
  
          return $this;
      }
  
      /**
       * Get email
       *
       * @return string 
       */
      public function getEmail()
      {
          return $this-&gt;email;
      }
  
      /**
       * Set password
       *
       * @param string $password
       * @return SnabUsers
       */
      public function setPassword($password)
      {
          $this-&gt;password = $password;
  
          return $this;
      }
  
      /**
       * Get password
       *
       * @return string 
       */
      public function getPassword()
      {
          return $this-&gt;password;
      }
  
      /**
       * Set type
       *
       * @param string $type
       * @return SnabUsers
       */
      public function setType($type)
      {
          $this-&gt;type = $type;
  
          return $this;
      }
  
      /**
       * Get type
       *
       * @return string 
       */
      public function getType()
      {
          return $this-&gt;type;
      }
  
      /**
       * Set clientInn
       *
       * @param string $clientInn
       * @return SnabUsers
       */
      public function setClientInn($clientInn)
      {
          $this-&gt;clientInn = $clientInn;
  
          return $this;
      }
  
      /**
       * Get clientInn
       *
       * @return string 
       */
      public function getClientInn()
      {
          return $this-&gt;clientInn;
      }
  
      /**
       * Set clientOgrn
       *
       * @param string $clientOgrn
       * @return SnabUsers
       */
      public function setClientOgrn($clientOgrn)
      {
          $this-&gt;clientOgrn = $clientOgrn;
  
          return $this;
      }
  
      /**
       * Get clientOgrn
       *
       * @return string 
       */
      public function getClientOgrn()
      {
          return $this-&gt;clientOgrn;
      }
  
      /**
       * Set clientRs
       *
       * @param string $clientRs
       * @return SnabUsers
       */
      public function setClientRs($clientRs)
      {
          $this-&gt;clientRs = $clientRs;
  
          return $this;
      }
  
      /**
       * Get clientRs
       *
       * @return string 
       */
      public function getClientRs()
      {
          return $this-&gt;clientRs;
      }
  
      /**
       * Set clientKs
       *
       * @param string $clientKs
       * @return SnabUsers
       */
      public function setClientKs($clientKs)
      {
          $this-&gt;clientKs = $clientKs;
  
          return $this;
      }
  
      /**
       * Get clientKs
       *
       * @return string 
       */
      public function getClientKs()
      {
          return $this-&gt;clientKs;
      }
  
      /**
       * Set clientBik
       *
       * @param string $clientBik
       * @return SnabUsers
       */
      public function setClientBik($clientBik)
      {
          $this-&gt;clientBik = $clientBik;
  
          return $this;
      }
  
      /**
       * Get clientBik
       *
       * @return string 
       */
      public function getClientBik()
      {
          return $this-&gt;clientBik;
      }
  
      /**
       * Set clientUaddress
       *
       * @param string $clientUaddress
       * @return SnabUsers
       */
      public function setClientUaddress($clientUaddress)
      {
          $this-&gt;clientUaddress = $clientUaddress;
  
          return $this;
      }
  
      /**
       * Get clientUaddress
       *
       * @return string 
       */
      public function getClientUaddress()
      {
          return $this-&gt;clientUaddress;
      }
  
      /**
       * Set clientFaddress
       *
       * @param string $clientFaddress
       * @return SnabUsers
       */
      public function setClientFaddress($clientFaddress)
      {
          $this-&gt;clientFaddress = $clientFaddress;
  
          return $this;
      }
  
      /**
       * Get clientFaddress
       *
       * @return string 
       */
      public function getClientFaddress()
      {
          return $this-&gt;clientFaddress;
      }
  
      /**
       * Set clientDaddress
       *
       * @param string $clientDaddress
       * @return SnabUsers
       */
      public function setClientDaddress($clientDaddress)
      {
          $this-&gt;clientDaddress = $clientDaddress;
  
          return $this;
      }
  
      /**
       * Get clientDaddress
       *
       * @return string 
       */
      public function getClientDaddress()
      {
          return $this-&gt;clientDaddress;
      }
  
      /**
       * Set name
       *
       * @param string $name
       * @return SnabUsers
       */
      public function setName($name)
      {
          $this-&gt;name = $name;
  
          return $this;
      }
  
      /**
       * Get name
       *
       * @return string 
       */
      public function getName()
      {
          return $this-&gt;name;
      }
  
      /**
       * Set notes
       *
       * @param string $notes
       * @return SnabUsers
       */
      public function setNotes($notes)
      {
          $this-&gt;notes = $notes;
  
          return $this;
      }
  
      /**
       * Get notes
       *
       * @return string 
       */
      public function getNotes()
      {
          return $this-&gt;notes;
      }
  
      /**
       * Set addedDate
       *
       * @param \DateTime $addedDate
       * @return SnabUsers
       */
      public function setAddedDate($addedDate)
      {
          $this-&gt;addedDate = $addedDate;
  
          return $this;
      }
  
      /**
       * Get addedDate
       *
       * @return \DateTime 
       */
      public function getAddedDate()
      {
          return $this-&gt;addedDate;
      }
  }
  </code></pre>
  
  <p>Do you have any ideas why? eAccelerator is not set up. Doctrine v 2.2, PHP v 5.3.22, zend engine 2.3.0</p>