ReadOnlyCachedCollectionPersister
extends NonStrictReadWriteCachedCollectionPersister
in package
Table of Contents
Properties
- $association : array<string|int, mixed>
- $cacheLogger : CacheLogger|null
- $hydrator : CollectionHydrator
- $metadataFactory : ClassMetadataFactory
- $persister : CollectionPersister
- $queuedCache : array<string|int, mixed>
- $region : Region
- $regionName : string
- $sourceEntity : ClassMetadata
- $targetEntity : ClassMetadata
- $uow : UnitOfWork
Methods
- __construct() : mixed
- afterTransactionComplete() : mixed
- {@inheritDoc}
- afterTransactionRolledBack() : mixed
- {@inheritDoc}
- contains() : mixed
- {@inheritDoc}
- containsKey() : mixed
- {@inheritDoc}
- count() : mixed
- {@inheritDoc}
- delete() : mixed
- {@inheritDoc}
- get() : mixed
- {@inheritDoc}
- getCacheRegion() : mixed
- {@inheritDoc}
- getSourceEntityMetadata() : ClassMetadata
- getTargetEntityMetadata() : ClassMetadata
- loadCollectionCache() : array<string|int, mixed>|null
- Loads a collection from cache
- loadCriteria() : mixed
- {@inheritDoc}
- slice() : mixed
- {@inheritDoc}
- storeCollectionCache() : void
- Stores a collection into cache
- update() : mixed
- {@inheritDoc}
- evictCollectionCache() : void
- Clears cache entries related to the current collection
- evictElementCache() : void
Properties
$association
protected
array<string|int, mixed>
$association
$cacheLogger
protected
CacheLogger|null
$cacheLogger
$hydrator
protected
CollectionHydrator
$hydrator
$metadataFactory
protected
ClassMetadataFactory
$metadataFactory
$persister
protected
CollectionPersister
$persister
$queuedCache
protected
array<string|int, mixed>
$queuedCache
= []
$region
protected
Region
$region
$regionName
protected
string
$regionName
$sourceEntity
protected
ClassMetadata
$sourceEntity
$targetEntity
protected
ClassMetadata
$targetEntity
$uow
protected
UnitOfWork
$uow
Methods
__construct()
public
__construct(CollectionPersister $persister, Region $region, EntityManagerInterface $em, AssociationMapping $association) : mixed
Parameters
- $persister : CollectionPersister
-
The collection persister that will be cached.
- $region : Region
-
The collection region.
- $em : EntityManagerInterface
-
The entity manager.
- $association : AssociationMapping
-
The association mapping.
afterTransactionComplete()
{@inheritDoc}
public
afterTransactionComplete() : mixed
afterTransactionRolledBack()
{@inheritDoc}
public
afterTransactionRolledBack() : mixed
contains()
{@inheritDoc}
public
contains(PersistentCollection $collection, mixed $element) : mixed
Parameters
- $collection : PersistentCollection
- $element : mixed
containsKey()
{@inheritDoc}
public
containsKey(PersistentCollection $collection, mixed $key) : mixed
Parameters
- $collection : PersistentCollection
- $key : mixed
count()
{@inheritDoc}
public
count(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
delete()
{@inheritDoc}
public
delete(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
get()
{@inheritDoc}
public
get(PersistentCollection $collection, mixed $index) : mixed
Parameters
- $collection : PersistentCollection
- $index : mixed
getCacheRegion()
{@inheritDoc}
public
getCacheRegion() : mixed
getSourceEntityMetadata()
public
getSourceEntityMetadata() : ClassMetadata
Return values
ClassMetadatagetTargetEntityMetadata()
public
getTargetEntityMetadata() : ClassMetadata
Return values
ClassMetadataloadCollectionCache()
Loads a collection from cache
public
loadCollectionCache(PersistentCollection $collection, CollectionCacheKey $key) : array<string|int, mixed>|null
Parameters
- $collection : PersistentCollection
- $key : CollectionCacheKey
Return values
array<string|int, mixed>|nullloadCriteria()
{@inheritDoc}
public
loadCriteria(PersistentCollection $collection, Criteria $criteria) : mixed
Parameters
- $collection : PersistentCollection
- $criteria : Criteria
slice()
{@inheritDoc}
public
slice(PersistentCollection $collection, mixed $offset[, mixed $length = null ]) : mixed
Parameters
- $collection : PersistentCollection
- $offset : mixed
- $length : mixed = null
storeCollectionCache()
Stores a collection into cache
public
storeCollectionCache(CollectionCacheKey $key, mixed $elements) : void
Parameters
- $key : CollectionCacheKey
- $elements : mixed
update()
{@inheritDoc}
public
update(PersistentCollection $collection) : mixed
Parameters
- $collection : PersistentCollection
evictCollectionCache()
Clears cache entries related to the current collection
protected
evictCollectionCache(PersistentCollection $collection) : void
Parameters
- $collection : PersistentCollection
Tags
evictElementCache()
protected
evictElementCache(string $targetEntity, object $element) : void
Parameters
- $targetEntity : string
- $element : object