mediatekformation

DefaultQueryCache
in package
implements QueryCache

Default query cache implementation.

Interfaces, Classes, Traits and Enums

QueryCache
Defines the contract for caches capable of storing query results.

Table of Contents

$cacheLogger  : CacheLogger
$em  : EntityManagerInterface
$hints  : array<string, mixed>
$region  : Region
$uow  : UnitOfWork
$validator  : QueryCacheValidator
__construct()  : mixed
clear()  : bool
get()  : array<string|int, mixed>|null
getRegion()  : Region
put()  : bool
getAssociationPathValue()  : mixed
getAssociationValue()  : array<string|int, object>|object
storeAssociationCache()  : array<string|int, mixed>|null

Properties

$hints

private static array<string, mixed> $hints = [\Doctrine\ORM\Query::HINT_CACHE_ENABLED => true]

Methods

getAssociationPathValue()

private getAssociationPathValue(mixed $value, array<string|int, mixed> $path) : mixed
Parameters
$value : mixed
$path : array<string|int, mixed>
Return values
mixed

getAssociationValue()

private getAssociationValue(ResultSetMapping $rsm, string $assocAlias, object $entity) : array<string|int, object>|object
Parameters
$rsm : ResultSetMapping
$assocAlias : string
$entity : object
Return values
array<string|int, object>|object

storeAssociationCache()

private storeAssociationCache(QueryCacheKey $key, array<string, mixed> $assoc, mixed $assocValue) : array<string|int, mixed>|null
Parameters
$key : QueryCacheKey
$assoc : array<string, mixed>
$assocValue : mixed
Tags
psalm-return

array{targetEntity: class-string, type: mixed, list?: array[], identifier?: array}|null

Return values
array<string|int, mixed>|null

Search results