Exemplo n.º 1
0
 public static function loadFullDataForCache()
 {
     // get all components
     $collection = parent::loadFullDataForCache();
     fx::registerComponents($collection);
     // set it as current finder cache
     // to avoid sql queries from Component\Entity::getChain()
     static::setStaticCache($collection);
     // enable static cache manually
     static::$isStaticCacheUsed = true;
     $collection->indexUnique('keyword')->apply(function ($com) {
         $com->getChain();
         $com->getAllFields();
         $com->getAvailableEntityOffsets();
     });
     return $collection;
 }