Bundle/BusinessEntityBundle/Reader/BusinessEntityCacheReader.php
protected function fetch($key)
    {
        $results = $this->cache->get($key, null);

        if (!$results) {
            //Reparse all entities to find some @VIC Annotation
            foreach ($this->driver->getAllClassNames() as $className) {
                $this->driver->parse(new \ReflectionClass($className));
            }
            $results = $this->cache->get($key, []);
        }

        return $results;
    }
protected function fetch($key)
    {
        $results = $this->cache->get($key, null);

        if (!$results) {
            //Reparse all entities to find some @VIC Annotation
            foreach ($this->driver->getAllClassNames() as $className) {
                $this->driver->parse(new \ReflectionClass($className));
            }
            $results = $this->cache->get($key, []);
        }

        return $results;
    }
protected function fetch ( $ key ) { $ results = $ this -> cache -> get ( $ key , null ) ; if ( ! $ results ) { //Reparse all entities to find some @VIC Annotation foreach ( $ this -> driver -> getAllClassNames ( ) as $ className ) { $ this -> driver -> parse ( new \ ReflectionClass ( $ className ) ) ; } $ results = $ this -> cache -> get ( $ key , [ ] ) ; } return $ results ; }
Fetch in Cache system and try to reparse Annotation if no results.

@param $key

@throws \Doctrine\ORM\Mapping\MappingException

@return mixed
Fetch in Cache system and try to reparse Annotation if no results .