NonStrictReadWriteCachedEntityPersister
extends AbstractEntityPersister
in package
Specific non-strict read/write cached entity persister
Table of Contents
- $cache : Cache
- $cacheLogger : CacheLogger|null
- $class : ClassMetadata
- $hydrator : EntityHydrator
- $joinedAssociations : array<string|int, string>|null
- Associations configured as FETCH_EAGER, as well as all inverse one-to-one associations.
- $metadataFactory : ClassMetadataFactory
- $persister : EntityPersister
- $queuedCache : array<string|int, mixed>
- $region : Region
- $regionName : string
- $timestampKey : TimestampCacheKey
- $timestampRegion : TimestampRegion
- $uow : UnitOfWork
- __construct() : mixed
- addInsert() : mixed
- {@inheritdoc}
- afterTransactionComplete() : mixed
- {@inheritdoc}
- afterTransactionRolledBack() : mixed
- {@inheritdoc}
- count() : mixed
- {@inheritDoc}
- delete() : mixed
- {@inheritdoc}
- executeInserts() : mixed
- {@inheritdoc}
- exists() : mixed
- {@inheritdoc}
- expandCriteriaParameters() : mixed
- {@inheritdoc}
- expandParameters() : mixed
- {@inheritdoc}
- getCacheRegion() : mixed
- {@inheritdoc}
- getClassMetadata() : mixed
- {@inheritdoc}
- getCountSQL() : mixed
- {@inheritDoc}
- getEntityHydrator() : EntityHydrator
- getInserts() : mixed
- {@inheritdoc}
- getInsertSQL() : mixed
- {@inheritdoc}
- getManyToManyCollection() : mixed
- {@inheritdoc}
- getOneToManyCollection() : mixed
- {@inheritdoc}
- getOwningTable() : mixed
- {@inheritdoc}
- getResultSetMapping() : mixed
- {@inheritdoc}
- getSelectConditionStatementSQL() : mixed
- {@inheritdoc}
- getSelectSQL() : mixed
- {@inheritdoc}
- load() : mixed
- {@inheritdoc}
- loadAll() : mixed
- {@inheritdoc}
- loadById() : mixed
- {@inheritdoc}
- loadCriteria() : mixed
- {@inheritdoc}
- loadManyToManyCollection() : mixed
- {@inheritdoc}
- loadOneToManyCollection() : mixed
- {@inheritdoc}
- loadOneToOneEntity() : mixed
- {@inheritdoc}
- lock() : mixed
- {@inheritdoc}
- refresh() : mixed
- {@inheritdoc}
- storeEntityCache() : bool
- update() : mixed
- {@inheritdoc}
- buildCollectionCacheKey() : CollectionCacheKey
- getHash() : string
- Generates a string of currently query
- storeJoinedAssociations() : void
- updateCache() : bool
Properties
$cache
protected
Cache
$cache
$cacheLogger
protected
CacheLogger|null
$cacheLogger
$class
protected
ClassMetadata
$class
$hydrator
protected
EntityHydrator
$hydrator
$joinedAssociations
Associations configured as FETCH_EAGER, as well as all inverse one-to-one associations.
protected
array<string|int, string>|null
$joinedAssociations
$metadataFactory
protected
ClassMetadataFactory
$metadataFactory
$persister
protected
EntityPersister
$persister
$queuedCache
protected
array<string|int, mixed>
$queuedCache
= []
$region
protected
Region
$region
$regionName
protected
string
$regionName
$timestampKey
protected
TimestampCacheKey
$timestampKey
$timestampRegion
protected
TimestampRegion
$timestampRegion
$uow
protected
UnitOfWork
$uow
Methods
__construct()
public
__construct(EntityPersister $persister, Region $region, EntityManagerInterface $em, ClassMetadata $class) : mixed
Parameters
- $persister : EntityPersister
-
The entity persister to cache.
- $region : Region
-
The entity cache region.
- $em : EntityManagerInterface
-
The entity manager.
- $class : ClassMetadata
-
The entity metadata.
Return values
mixed —addInsert()
{@inheritdoc}
public
addInsert(mixed $entity) : mixed
Parameters
- $entity : mixed
Return values
mixed —afterTransactionComplete()
{@inheritdoc}
public
afterTransactionComplete() : mixed
Return values
mixed —afterTransactionRolledBack()
{@inheritdoc}
public
afterTransactionRolledBack() : mixed
Return values
mixed —count()
{@inheritDoc}
public
count([mixed $criteria = [] ]) : mixed
Parameters
- $criteria : mixed = []
Return values
mixed —delete()
{@inheritdoc}
public
delete(mixed $entity) : mixed
Parameters
- $entity : mixed
Return values
mixed —executeInserts()
{@inheritdoc}
public
executeInserts() : mixed
Return values
mixed —exists()
{@inheritdoc}
public
exists(mixed $entity[, Criteria|null $extraConditions = null ]) : mixed
Parameters
- $entity : mixed
- $extraConditions : Criteria|null = null
Return values
mixed —expandCriteriaParameters()
{@inheritdoc}
public
expandCriteriaParameters(Criteria $criteria) : mixed
Parameters
- $criteria : Criteria
Return values
mixed —expandParameters()
{@inheritdoc}
public
expandParameters(mixed $criteria) : mixed
Parameters
- $criteria : mixed
Return values
mixed —getCacheRegion()
{@inheritdoc}
public
getCacheRegion() : mixed
Return values
mixed —getClassMetadata()
{@inheritdoc}
public
getClassMetadata() : mixed
Return values
mixed —getCountSQL()
{@inheritDoc}
public
getCountSQL([mixed $criteria = [] ]) : mixed
Parameters
- $criteria : mixed = []
Return values
mixed —getEntityHydrator()
public
getEntityHydrator() : EntityHydrator
Return values
EntityHydrator —getInserts()
{@inheritdoc}
public
getInserts() : mixed
Return values
mixed —getInsertSQL()
{@inheritdoc}
public
getInsertSQL() : mixed
Return values
mixed —getManyToManyCollection()
{@inheritdoc}
public
getManyToManyCollection(array<string|int, mixed> $assoc, mixed $sourceEntity[, mixed $offset = null ][, mixed $limit = null ]) : mixed
Parameters
- $assoc : array<string|int, mixed>
- $sourceEntity : mixed
- $offset : mixed = null
- $limit : mixed = null
Return values
mixed —getOneToManyCollection()
{@inheritdoc}
public
getOneToManyCollection(array<string|int, mixed> $assoc, mixed $sourceEntity[, mixed $offset = null ][, mixed $limit = null ]) : mixed
Parameters
- $assoc : array<string|int, mixed>
- $sourceEntity : mixed
- $offset : mixed = null
- $limit : mixed = null
Return values
mixed —getOwningTable()
{@inheritdoc}
public
getOwningTable(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
Return values
mixed —getResultSetMapping()
{@inheritdoc}
public
getResultSetMapping() : mixed
Return values
mixed —getSelectConditionStatementSQL()
{@inheritdoc}
public
getSelectConditionStatementSQL(mixed $field, mixed $value[, mixed $assoc = null ][, mixed $comparison = null ]) : mixed
Parameters
- $field : mixed
- $value : mixed
- $assoc : mixed = null
- $comparison : mixed = null
Return values
mixed —getSelectSQL()
{@inheritdoc}
public
getSelectSQL(mixed $criteria[, mixed $assoc = null ][, mixed $lockMode = null ][, mixed $limit = null ][, mixed $offset = null ][, array<string|int, mixed>|null $orderBy = null ]) : mixed
Parameters
- $criteria : mixed
- $assoc : mixed = null
- $lockMode : mixed = null
- $limit : mixed = null
- $offset : mixed = null
- $orderBy : array<string|int, mixed>|null = null
Return values
mixed —load()
{@inheritdoc}
public
load(array<string|int, mixed> $criteria[, mixed $entity = null ][, mixed $assoc = null ][, array<string|int, mixed> $hints = [] ][, mixed $lockMode = null ][, mixed $limit = null ][, array<string|int, mixed>|null $orderBy = null ]) : mixed
Parameters
- $criteria : array<string|int, mixed>
- $entity : mixed = null
- $assoc : mixed = null
- $hints : array<string|int, mixed> = []
- $lockMode : mixed = null
- $limit : mixed = null
- $orderBy : array<string|int, mixed>|null = null
Return values
mixed —loadAll()
{@inheritdoc}
public
loadAll([array<string|int, mixed> $criteria = [] ][, array<string|int, mixed>|null $orderBy = null ][, mixed $limit = null ][, mixed $offset = null ]) : mixed
Parameters
- $criteria : array<string|int, mixed> = []
- $orderBy : array<string|int, mixed>|null = null
- $limit : mixed = null
- $offset : mixed = null
Return values
mixed —loadById()
{@inheritdoc}
public
loadById(array<string|int, mixed> $identifier[, mixed $entity = null ]) : mixed
Parameters
- $identifier : array<string|int, mixed>
- $entity : mixed = null
Return values
mixed —loadCriteria()
{@inheritdoc}
public
loadCriteria(Criteria $criteria) : mixed
Parameters
- $criteria : Criteria
Return values
mixed —loadManyToManyCollection()
{@inheritdoc}
public
loadManyToManyCollection(array<string|int, mixed> $assoc, mixed $sourceEntity, PersistentCollection $collection) : mixed
Parameters
- $assoc : array<string|int, mixed>
- $sourceEntity : mixed
- $collection : PersistentCollection
Return values
mixed —loadOneToManyCollection()
{@inheritdoc}
public
loadOneToManyCollection(array<string|int, mixed> $assoc, mixed $sourceEntity, PersistentCollection $collection) : mixed
Parameters
- $assoc : array<string|int, mixed>
- $sourceEntity : mixed
- $collection : PersistentCollection
Return values
mixed —loadOneToOneEntity()
{@inheritdoc}
public
loadOneToOneEntity(array<string|int, mixed> $assoc, mixed $sourceEntity[, array<string|int, mixed> $identifier = [] ]) : mixed
Parameters
- $assoc : array<string|int, mixed>
- $sourceEntity : mixed
- $identifier : array<string|int, mixed> = []
Return values
mixed —lock()
{@inheritdoc}
public
lock(array<string|int, mixed> $criteria, mixed $lockMode) : mixed
Parameters
- $criteria : array<string|int, mixed>
- $lockMode : mixed
Return values
mixed —refresh()
{@inheritdoc}
public
refresh(array<string|int, mixed> $id, mixed $entity[, mixed $lockMode = null ]) : mixed
Parameters
- $id : array<string|int, mixed>
- $entity : mixed
- $lockMode : mixed = null
Return values
mixed —storeEntityCache()
public
storeEntityCache(mixed $entity, EntityCacheKey $key) : bool
Parameters
- $entity : mixed
- $key : EntityCacheKey
Return values
bool —update()
{@inheritdoc}
public
update(mixed $entity) : mixed
Parameters
- $entity : mixed
Return values
mixed —buildCollectionCacheKey()
protected
buildCollectionCacheKey(array<string, mixed> $association, array<string, mixed> $ownerId) : CollectionCacheKey
Parameters
- $association : array<string, mixed>
- $ownerId : array<string, mixed>
Return values
CollectionCacheKey —getHash()
Generates a string of currently query
protected
getHash(string $query, array<string|int, string>|Criteria $criteria[, array<string|int, string> $orderBy = null ][, int $limit = null ][, int $offset = null ]) : string
Parameters
- $query : string
- $criteria : array<string|int, string>|Criteria
- $orderBy : array<string|int, string> = null
- $limit : int = null
- $offset : int = null
Return values
string —storeJoinedAssociations()
private
storeJoinedAssociations(object $entity) : void
Parameters
- $entity : object
Return values
void —updateCache()
private
updateCache(object $entity, bool $isChanged) : bool
Parameters
- $entity : object
- $isChanged : bool