/**
  * @param string $className
  * @param string $fieldName
  * @param string $mode      Can be the value of one of ConfigModelManager::MODE_* constants
  */
 protected function changeFieldMode($className, $fieldName, $mode)
 {
     if ($this->configManager->getConfigFieldModel($className, $fieldName)->getMode() !== $mode) {
         $this->logger->notice(sprintf('Update a mode of field "%s" to "%s". Entity: %s.', $fieldName, $mode, $className));
         $this->configManager->changeFieldMode($className, $fieldName, $mode);
     }
 }