Nextras\Orm\Mapper\IMapper::clearCollectionCache PHP Метод

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

Clears cache object for collection.
    public function clearCollectionCache();

Usage Example

Пример #1
0
 /** @inheritdoc */
 public function processClearIdentityMapAndCaches($areYouSure = NULL)
 {
     if ($areYouSure !== IModel::I_KNOW_WHAT_I_AM_DOING) {
         throw new LogicException('Do not call this method directly. Use IModel::clearIdentityMapAndCaches().');
     }
     $this->identityMap->destroyAllEntities();
     $this->mapper->clearCollectionCache();
 }