/**
*
* @param Dictionary $dictionary
*/
protected function addDatabaseTranslation(Dictionary $dictionary)
{
foreach ($this->locales as $locale) {
$translation = $dictionary->translate($locale->getCode())->getValue();
$propertyPath = '[' . $locale->getCode() . ']' . Helper::convertDotNotation($dictionary->getIdentifier());
$this->propertyAccessor->setValue($this->databaseTranslations, $propertyPath, $translation);
}
}