return array_values($translations);
} private function getEmotionTranslation($emotionId, array
$elementIds) { return $this->modelManager->
getConnection()->
createQueryBuilder() ->
select('translation.objectkey, translation.objecttype, translation.objectdata, locale.locale, shop.name as shop'
) ->
from('s_core_translations', 'translation'
) ->
leftJoin('translation', 's_core_shops', 'shop', 'translation.objectlanguage = shop.id'
) ->
leftJoin('shop', 's_core_locales', 'locale', 'shop.locale_id = locale.id'
) ->
where('translation.objecttype = "emotion" AND translation.objectkey = :emotionId'
) ->
orWhere('translation.objectkey IN (:ids)'
) ->
setParameter('emotionId',
$emotionId) ->
setParameter('ids',
$elementIds, Connection::PARAM_INT_ARRAY
) ->
execute() ->
fetchAll();
}}