Doctrine\ORM\AbstractQuery::setHydrationCacheProfile
Set a cache profile for hydration caching.
If no result cache driver is set in the QueryCacheProfile, the default result cache driver is used from the configuration. Important: Hydration caching does NOT register entities in the UnitOfWork when retrieved from the cache. Never use result cached entities for requests that also flush the EntityManager. If you want some form of caching with UnitOfWork registration you should use {@see AbstractQuery::setResultCacheProfile()}.
Signature
public function setHydrationCacheProfile([QueryCacheProfile
$profile = null] )
Parameters
$profile
— \Doctrine\DBAL\Cache\QueryCacheProfile
Returns
- AbstractQuery