php - Doctrine 2 + zf 1.11 -


i'm trying set doctrine 2 play zf 1.11 while. have managed resolve errors except one:

php fatal error:  class 'doctrine\orm\configuration' not found in c:\development\porjects\application\bootstrap.php on line 258 

below _inidoctrine() function in bootstrap.php file line 258 referred error message:

protected function _initdoctrine() { $this->bootstrap('autoload');  require_once('doctrine/common/classloader.php');  // create doctrine autoloader , remove 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 doctrine autoloader load doctrine\ namespace $autoloader->pushautoloader($doctrineautoloader, 'doctrine');  $classloader = new \doctrine\common\classloader('entities', realpath(__dir__ . '/models/'), 'loadclass'); $autoloader->pushautoloader(array($classloader, 'loadclass'), 'entities');  $classloader = new \doctrine\common\classloader('symfony', realpath(__dir__ . '/../library/doctrine/'), 'loadclass'); $autoloader->pushautoloader(array($classloader, 'loadclass'), 'symfony');   $doctrineconfig = $this->getoption('doctrine'); $config = new \doctrine\orm\configuration(); 

apparently, application fails 'see' configuration class (and file). if manually require class before class instantiated. class/file appears 'unseen'. 'manual' fix not do.

the doctrine folder contains these files on include path. have scoured web ideas. please suggest? thanks

i achieve make zf 1.x & doctrine 2 working great using this application resource available on github , documented.

hope helps


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -