Rezend_Entity_Manager->__construct(object)
80 | version_profile and profileStopwatch('Default_Bootstrap::_initSession()')->stop(); 81 | 82 | } 83 | 84 | protected function _initEntityManager () { 85 | if (version_functional) { 86 | version_profile and profileStopwatch('Default_Bootstrap::_initEntityManager()')->start(); 87 | enforce(isset($this->getResource('config')->resources->db), 88 | 'Entity manager configuration not found'); 89 | $entityManager = new Rezend_Entity_Manager($this->getResource('config')->resources->db); 90 | Zend_Registry::set('em', $entityManager); 91 | Zend_Registry::set('entityManager', $entityManager); 92 | version_profile and profileStopwatch('Default_Bootstrap::_initEntityManager()')->stop(); 93 | return $entityManager; 94 | } 95 | } 96 | 97 | static function stub_entityManager () { 98 | return (object) array( 99 | 'class' => 'Rezend_Registry',
Rezend_Entity_Manager->__construct(object)
80 | version_profile and profileStopwatch('Default_Bootstrap::_initSession()')->stop(); 81 | 82 | } 83 | 84 | protected function _initEntityManager () { 85 | if (version_functional) { 86 | version_profile and profileStopwatch('Default_Bootstrap::_initEntityManager()')->start(); 87 | enforce(isset($this->getResource('config')->resources->db), 88 | 'Entity manager configuration not found'); 89 | $entityManager = new Rezend_Entity_Manager($this->getResource('config')->resources->db); 90 | Zend_Registry::set('em', $entityManager); 91 | Zend_Registry::set('entityManager', $entityManager); 92 | version_profile and profileStopwatch('Default_Bootstrap::_initEntityManager()')->stop(); 93 | return $entityManager; 94 | } 95 | } 96 | 97 | static function stub_entityManager () { 98 | return (object) array( 99 | 'class' => 'Rezend_Registry',