interface CollectionHydrator (View source)

Hydrator cache entry for collections

Methods

buildCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, array|Collection $collection)

No description

array
loadCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, CollectionCacheEntry $entry, PersistentCollection $collection)

No description

Details

CollectionCacheEntry buildCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, array|Collection $collection)

Parameters

ClassMetadata $metadata The entity metadata.
CollectionCacheKey $key The cached collection key.
array|Collection $collection The collection.

Return Value

CollectionCacheEntry

array loadCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, CollectionCacheEntry $entry, PersistentCollection $collection)

Parameters

ClassMetadata $metadata The owning entity metadata.
CollectionCacheKey $key The cached collection key.
CollectionCacheEntry $entry The cached collection entry.
PersistentCollection $collection The collection to load the cache into.

Return Value

array