コード例 #1
0
 public function testGetEntityCacheRegionAccess()
 {
     $this->assertInstanceOf('Doctrine\\ORM\\Cache\\Region', $this->cache->getEntityCacheRegion(State::CLASSNAME));
     $this->assertNull($this->cache->getEntityCacheRegion(self::NON_CACHEABLE_ENTITY));
 }
コード例 #2
0
 protected function getEntityRegion($className)
 {
     return $this->cache->getEntityCacheRegion($className)->getName();
 }