interface EntityHydrator (View source)

Hydrator cache entry for entities

Methods

buildCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, object $entity)

No description

loadCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, EntityCacheEntry $entry, object $entity = null)

No description

Details

EntityCacheEntry buildCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, object $entity)

Parameters

ClassMetadata $metadata The entity metadata.
EntityCacheKey $key The entity cache key.
object $entity The entity.

Return Value

EntityCacheEntry

loadCacheEntry(ClassMetadata $metadata, EntityCacheKey $key, EntityCacheEntry $entry, object $entity = null)

Parameters

ClassMetadata $metadata The entity metadata.
EntityCacheKey $key The entity cache key.
EntityCacheEntry $entry The entity cache entry.
object $entity The entity to load the cache into. If not specified, a new entity is created.