title: PHP Doctrine Beginner: Doctrine\ORM\Tools\Setup not found
body: <p>im a beginner with doctrine. I just installed pear + doctrine 2.3.3 and want to test it.</p>
  
  <p>to test doctrine i wrote a class named "person"</p>
  
  <pre><code>/**
   * @Entity
   */
  class person
  {
      /** @Id @Column(type="integer") @GeneratedValue * */
      private $id;
  
      /** @Column(type="string") * */
      private $name;
  
      /** @Column(type="string") * */
      private $surname;
  
      //some getters and setters ...
  }
  </code></pre>
  
  <p>after that i made my bootstrap.php file, bootstrep_doctrine.php and cli-config.php files and run the command:</p>
  
  <pre><code>doctrine orm:schema-tool:create
  </code></pre>
  
  <p>that works fine!</p>
  
  <p>But now, when i want to include my bootstrap.php in a "normal" php file, to create a "person" i get the following error:</p>
  
  <pre><code>Fatal error: Class 'Doctrine\ORM\Tools\Setup' not found 
  in /var/www/vms/bootstrap_doctrine.php on line 15
  </code></pre>
  
  <p>The file looks like follows:</p>
  
  <pre><code>&lt;?php
  $debug = true;
  if($debug){
      error_reporting(E_ALL);
      ini_set("display_errors", "on");
      ini_set("display_startip_errors", "on");
  }
  require_once '../bootstrap.php';
  
  include_once ('testClassOrm.php');
  $person = new person();
  $person = new person();
  $person-&gt;setName("Hans");
  ?&gt;
  </code></pre>
  
  <p>bootstrap.php:</p>
  
  <pre><code>if(!class_exists("Doctrine\Common\Version", false)){
      require_once 'bootstrap_doctrine.php';
  }
  </code></pre>
  
  <p>bootstrap_doctrine.php</p>
  
  <pre><code>use Doctrine\ORM\Tools\Setup;
  use Doctrine\ORM\EntityManager;
  
  $paths = array("entities/");
  $isDevMode = true;
  
  // the connection configuration
  $dbParams = array(
      'driver'   =&gt; 'pdo_mysql',
      'user'     =&gt; 'TEST',
      'password' =&gt; 'TEST',
      'dbname'   =&gt; 'test',
  );
  
  $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
  $em = EntityManager::create($dbParams, $config);
  </code></pre>
  
  <p>i checked if the /usr/share/pear/ is in php_include path. and it is ..</p>
  
  <pre><code>require_once 'System.php';
  var_dump(class_exists('System', false));
  </code></pre>
  
  <p>it returns true:</p>
  
  <p>but this one does return false:</p>
  
  <pre><code>use Doctrine\ORM\Tools\Setup;
  var_dump(class_exists('Setup', false));
  </code></pre>
  
  <p>Am i doing something wrong?</p>
  
  <p>best regards</p>