Файловый менеджер - Редактировать - /home/avadvi5/calendar.aeronextgen.com/davis/vendor/doctrine/orm/src/Cache/Persister/Collection/NonStrictReadWriteCachedCollectionPersister.php
Ðазад
<?php declare(strict_types=1); namespace Doctrine\ORM\Cache\Persister\Collection; use Doctrine\ORM\Cache\CollectionCacheKey; use Doctrine\ORM\PersistentCollection; use function spl_object_id; class NonStrictReadWriteCachedCollectionPersister extends AbstractCollectionPersister { /** * {@inheritDoc} */ public function afterTransactionComplete() { if (isset($this->queuedCache['update'])) { foreach ($this->queuedCache['update'] as $item) { $this->storeCollectionCache($item['key'], $item['list']); } } if (isset($this->queuedCache['delete'])) { foreach ($this->queuedCache['delete'] as $key) { $this->region->evict($key); } } $this->queuedCache = []; } /** * {@inheritDoc} */ public function afterTransactionRolledBack() { $this->queuedCache = []; } /** * {@inheritDoc} */ public function delete(PersistentCollection $collection) { $ownerId = $this->uow->getEntityIdentifier($collection->getOwner()); $key = new CollectionCacheKey($this->sourceEntity->rootEntityName, $this->association['fieldName'], $ownerId, $this->filters->getHash()); $this->persister->delete($collection); $this->queuedCache['delete'][spl_object_id($collection)] = $key; } /** * {@inheritDoc} */ public function update(PersistentCollection $collection) { $isInitialized = $collection->isInitialized(); $isDirty = $collection->isDirty(); if (! $isInitialized && ! $isDirty) { return; } $ownerId = $this->uow->getEntityIdentifier($collection->getOwner()); $key = new CollectionCacheKey($this->sourceEntity->rootEntityName, $this->association['fieldName'], $ownerId, $this->filters->getHash()); // Invalidate non initialized collections OR ordered collection if ($isDirty && ! $isInitialized || isset($this->association['orderBy'])) { $this->persister->update($collection); $this->queuedCache['delete'][spl_object_id($collection)] = $key; return; } $this->persister->update($collection); $this->queuedCache['update'][spl_object_id($collection)] = [ 'key' => $key, 'list' => $collection, ]; } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка