Пример #1
0
 /**
  * Execute certain hook handle
  *
  * @return void
  */
 public function executeHookHandler()
 {
     if (!$this->areProxiesExist()) {
         // Create the proxies folder
         \Includes\Utils\FileManager::mkdirRecursive(LC_DIR_CACHE_PROXY);
         // Create model proxy classes (second step of cache generation)
         \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::generateProxies();
     }
 }
Пример #2
0
 /**
  * Alias
  *
  * @param string $class Class name OPTIONAL
  *
  * @return array|\Doctrine\ORM\Mapping\ClassMetadata
  */
 protected function getMetadata($class = null)
 {
     return \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::getAllMetadata($class);
 }
Пример #3
0
 /**
  * Execute certain hook handle
  *
  * @return void
  */
 public function executeHookHandler()
 {
     // Create model proxy classes (first step of cache generation)
     \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::generateModels();
 }
Пример #4
0
 /**
  * Save current metadata 
  * 
  * @return void
  */
 protected function saveMetadata()
 {
     \Includes\Decorator\Utils\CacheInfo::set('metadata', \Includes\Decorator\Plugin\Doctrine\Utils\EntityManager::getAllMetadata());
 }