private function syncEventDescription(EventDetail $eventDetail, $lang)
{
$findTemplates = $this->em->getRepository('OjsJournalBundle:MailTemplate')->findBy(['type' => $eventDetail->getName(), 'lang' => $lang]);
foreach ($findTemplates as $template) {
$this->io->writeln(sprintf('Updating description for -> %s', $eventDetail->getName()));
$template->setDescription($this->translator->trans($eventDetail->getName(), [], null, $lang));
$template->setUpdatedBy('cli');
$this->em->persist($template);
}
}