Ejemplo n.º 1
0
 public function testGetCollectionCacheRegionAccess()
 {
     $this->assertInstanceOf('Doctrine\\ORM\\Cache\\Region', $this->cache->getCollectionCacheRegion(State::CLASSNAME, 'cities'));
     $this->assertNull($this->cache->getCollectionCacheRegion(self::NON_CACHEABLE_ENTITY, 'phonenumbers'));
 }
 protected function getCollectionRegion($className, $association)
 {
     return $this->cache->getCollectionCacheRegion($className, $association)->getName();
 }