1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#954 DDC-2982 - Minor CS fixes/IDE hints

This commit is contained in:
Marco Pivetta 2015-01-17 23:17:07 +01:00
parent 8ddcc4b270
commit 95c6cca336

View File

@ -181,8 +181,13 @@ class DefaultCacheFactory implements CacheFactory
*/
public function buildCollectionHydrator(EntityManagerInterface $em, array $mapping)
{
/* @var $targetPersister \Doctrine\ORM\Cache\Persister\CachedPersister */
$targetPersister = $em->getUnitOfWork()->getEntityPersister($mapping['targetEntity']);
return new DefaultCollectionHydrator($em, $targetPersister->getCacheRegion());
return new DefaultCollectionHydrator(
$em,
$targetPersister->getCacheRegion()
);
}
/**