private function getCacheEntity($id)
    {
        $contextual_id = $this->getContextualId($id);

        if (null === $this->_entity || $this->_entity->getId() !== $contextual_id) {
            $this->_entity = $this->_repository->find($contextual_id);
        }

        return $this->_entity;
    }
private function getCacheEntity($id)
    {
        $contextual_id = $this->getContextualId($id);

        if (null === $this->_entity || $this->_entity->getId() !== $contextual_id) {
            $this->_entity = $this->_repository->find($contextual_id);
        }

        return $this->_entity;
    }
private function getCacheEntity ( $ id ) { $ contextual_id = $ this -> getContextualId ( $ id ) ; if ( null === $ this -> _entity || $ this -> _entity -> getId ( ) !== $ contextual_id ) { $ this -> _entity = $ this -> _repository -> find ( $ contextual_id ) ; } return $ this -> _entity ; }
Returns the store entity for provided cache id.

@param string $id Cache id

@return \BackBee\Cache\DAO\Entity The cache entity or NULL
@codeCoverageIgnore
Returns the store entity for provided cache id .