public function warmUp()
    {
        $translations = $this
            ->entityTranslationRepository
            ->findAll();

        /**
         * @var EntityTranslationInterface $translation
         */
        foreach ($translations as $translation) {
            $cacheKey = $this->buildKey(
                $translation->getEntityType(),
                $translation->getEntityId(),
                $translation->getEntityField(),
                $translation->getLocale()
            );

            $this
                ->cache
                ->save(
                    $cacheKey,
                    $translation->getTranslation()
                );
        }

        return $this;
    }
public function warmUp()
    {
        $translations = $this
            ->entityTranslationRepository
            ->findAll();

        /**
         * @var EntityTranslationInterface $translation
         */
        foreach ($translations as $translation) {
            $cacheKey = $this->buildKey(
                $translation->getEntityType(),
                $translation->getEntityId(),
                $translation->getEntityField(),
                $translation->getLocale()
            );

            $this
                ->cache
                ->save(
                    $cacheKey,
                    $translation->getTranslation()
                );
        }

        return $this;
    }
public function warmUp ( ) { $ translations = $ this -> entityTranslationRepository -> findAll ( ) ; /**
         * @var EntityTranslationInterface $translation
         */ foreach ( $ translations as $ translation ) { $ cacheKey = $ this -> buildKey ( $ translation -> getEntityType ( ) , $ translation -> getEntityId ( ) , $ translation -> getEntityField ( ) , $ translation -> getLocale ( ) ) ; $ this -> cache -> save ( $ cacheKey , $ translation -> getTranslation ( ) ) ; } return $ this ; }
Warm-up translations.

@return $this Self object
Warm - up translations .