private function setEntityRepository()
    {
        try {
            $this->_repository = $this->_em->getRepository(self::ENTITY_CLASSNAME);
        } catch (\Exception $e) {
            throw new CacheException('Enable to load the cache entity repository', null, $e);
        }

        return $this;
    }
private function setEntityRepository()
    {
        try {
            $this->_repository = $this->_em->getRepository(self::ENTITY_CLASSNAME);
        } catch (\Exception $e) {
            throw new CacheException('Enable to load the cache entity repository', null, $e);
        }

        return $this;
    }
private function setEntityRepository ( ) { try { $ this -> _repository = $ this -> _em -> getRepository ( self :: ENTITY_CLASSNAME ) ; } catch ( \ Exception $ e ) { throw new CacheException ( 'Enable to load the cache entity repository' , null , $ e ) ; } return $ this ; }
Sets the entity repository.

@return \BackBee\Cache\DAO\Cache

@throws \BackBee\Cache\Exception\CacheException Occurs if the entity repository cannot be found
@codeCoverageIgnore
Sets the entity repository .