/** * Ensure indexes from potentialy newly activated locale * * Indexes will be created on the normalizedData part for: * - completenesses * - localizable attributes * * @param LocaleInterface $locale */ public function ensureIndexesFromLocale(LocaleInterface $locale) { $completenessFields = $this->getCompletenessNormFields(); $this->ensureIndexes($completenessFields); $localizables = $this->namingUtility->getLocalizableAttributes(); foreach ($localizables as $localizable) { $this->ensureIndexesFromAttribute($localizable); } }