Nextras\Orm\Entity\IEntity::getPreloadContainer PHP Метод

getPreloadContainer() публичный Метод

public getPreloadContainer ( ) : Nextras\Orm\Collection\IEntityPreloadContainer
Результат Nextras\Orm\Collection\IEntityPreloadContainer
    public function getPreloadContainer();

Usage Example

Пример #1
0
 /**
  * @return ICollection
  */
 protected function getCachedCollection()
 {
     $key = spl_object_hash($this->parent->getPreloadContainer()) . '_' . $this->metadata->name;
     $cache = $this->parent->getRepository()->getMapper()->getCollectionCache();
     if (!isset($cache->{$key})) {
         $cache->{$key} = $this->createCollection();
     }
     $this->collection = $cache->{$key};
     return $cache->{$key};
 }
All Usage Examples Of Nextras\Orm\Entity\IEntity::getPreloadContainer