Bundle/WidgetBundle/Entity/Widget.php
public function generateCacheId()
    {
        if (!$this->getCurrentView()) {
            throw new \Exception(sprintf(
                'Cannot generate an hash for widget %s if currentView is not defined.',
                $this->getId()
            ));
        }

        return sprintf(
            '%s-%s-%s',
            $this->getId(),
            $this->getUpdatedAt()->getTimestamp(),
            $this->getCurrentView()->getReference()->getId()
        );
    }
public function generateCacheId()
    {
        if (!$this->getCurrentView()) {
            throw new \Exception(sprintf(
                'Cannot generate an hash for widget %s if currentView is not defined.',
                $this->getId()
            ));
        }

        return sprintf(
            '%s-%s-%s',
            $this->getId(),
            $this->getUpdatedAt()->getTimestamp(),
            $this->getCurrentView()->getReference()->getId()
        );
    }
public function generateCacheId ( ) { if ( ! $ this -> getCurrentView ( ) ) { throw new \ Exception ( sprintf ( 'Cannot generate an hash for widget %s if currentView is not defined.' , $ this -> getId ( ) ) ) ; } return sprintf ( '%s-%s-%s' , $ this -> getId ( ) , $ this -> getUpdatedAt ( ) -> getTimestamp ( ) , $ this -> getCurrentView ( ) -> getReference ( ) -> getId ( ) ) ; }
Generate the CacheId, insert params that can invalid the cache.

@return string
Generate the CacheId insert params that can invalid the cache .