class DefaultCollectionHydrator implements CollectionHydrator (View source)

Default hydrator cache for collections

Methods

__construct(EntityManagerInterface $em)

No description

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

No description

object[]
loadCacheEntry(ClassMetadata $metadata, CollectionCacheKey $key, CollectionCacheEntry $entry, PersistentCollection $collection)

No description

Details

__construct(EntityManagerInterface $em)

Parameters

EntityManagerInterface $em The entity manager.

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

Parameters

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

Return Value

CollectionCacheEntry

object[] 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

object[]