private function getFromCache($type)
    {
        if (false === $this->hasCache()) {
            return null;
        }
        return $this->cache->loadMetadataFromCache($type);
    }
private function getFromCache($type)
    {
        if (false === $this->hasCache()) {
            return null;
        }
        return $this->cache->loadMetadataFromCache($type);
    }
private function getFromCache ( $ type ) { if ( false === $ this -> hasCache ( ) ) { return null ; } return $ this -> cache -> loadMetadataFromCache ( $ type ) ; }
Retrieves a Metadata instance for a type from cache.

@return  EntityMetadata|null
Retrieves a Metadata instance for a type from cache .