DefaultCollectionHydrator
in package
implements
CollectionHydrator
Default hydrator cache for collections
Table of Contents
Interfaces
- CollectionHydrator
- Hydrator cache entry for collections
Properties
- $em : EntityManagerInterface
- $hints : array<string, mixed>
- $uow : UnitOfWork
Methods
- __construct() : mixed
- buildCacheEntry() : CollectionCacheEntry
- loadCacheEntry() : array<string|int, mixed>|null
Properties
$em
private
EntityManagerInterface
$em
$hints
private
static array<string, mixed>
$hints
= [\Doctrine\ORM\Query::HINT_CACHE_ENABLED => true]
$uow
private
UnitOfWork
$uow
Methods
__construct()
public
__construct(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
-
The entity manager.
buildCacheEntry()
public
buildCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, mixed $collection) : CollectionCacheEntry
Parameters
- $metadata : ClassMetadata
- $key : CollectionCacheKey
- $collection : mixed
-
The collection.
Return values
CollectionCacheEntryloadCacheEntry()
public
loadCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, CollectionCacheEntry $entry, PersistentCollection $collection) : array<string|int, mixed>|null
Parameters
- $metadata : ClassMetadata
- $key : CollectionCacheKey
- $entry : CollectionCacheEntry
- $collection : PersistentCollection