title: Doctrine 2 + zf 1.11
body: <p>I'm trying to set up Doctrine 2 to play with ZF 1.11 for a while. I have managed to resolve all errors except one:</p>
  
  <pre><code>PHP Fatal error:  Class 'Doctrine\ORM\Configuration' not found in C:\development\porjects\application\Bootstrap.php on line 258
  </code></pre>
  
  <p>Below is the _iniDoctrine() function in the Bootstrap.php file up to the line 258 referred to by the error message:</p>
  
  <pre><code>protected function _initDoctrine()
  {
  $this-&gt;bootstrap('autoload');
  
  require_once('Doctrine/Common/ClassLoader.php');
  
  // Create the doctrine autoloader and remove it from the spl autoload stack (it adds itself)
  require_once 'Doctrine/Common/ClassLoader.php';
  $doctrineAutoloader = array(new \Doctrine\Common\ClassLoader(), 'loadClass');
  
  spl_autoload_unregister($doctrineAutoloader);
  
  $autoloader = Zend_Loader_Autoloader::getInstance();
  
  // Push the doctrine autoloader to load for the Doctrine\ namespace
  $autoloader-&gt;pushAutoloader($doctrineAutoloader, 'doctrine');
  
  $classLoader = new \Doctrine\Common\ClassLoader('Entities', realpath(__DIR__ . '/models/'), 'loadClass');
  $autoloader-&gt;pushAutoloader(array($classLoader, 'loadClass'), 'Entities');
  
  $classLoader = new \Doctrine\Common\ClassLoader('Symfony', realpath(__DIR__ . '/../library/Doctrine/'), 'loadClass');
  $autoloader-&gt;pushAutoloader(array($classLoader, 'loadClass'), 'Symfony');
  
  
  $doctrineConfig = $this-&gt;getOption('doctrine');
  $config = new \Doctrine\ORM\Configuration();
  </code></pre>
  
  <p>Apparently, the application fails to 'see' the Configuration class (and file). If I manually require the class before the class is instantiated. Another Class/file appears 'unseen'. A 'manual' fix definitely would not do.</p>
  
  <p>The Doctrine folder which contains these files is on my include path. I have scoured the web for ideas. What please would you suggest? Thanks</p>