protected function execute(InputInterface $input, OutputInterface $output)
{
$this->io->title($this->getDescription());
$this->io->progressStart(count($this->getAnnouncements()));
$counter = 1;
foreach ($this->getAnnouncements() as $announcement) {
if (!$this->haveTranslation($announcement['id'])) {
$this->addTranslation($announcement);
$this->io->progressAdvance(1);
$counter = $counter + 1;
if ($counter % 50 == 0) {
$this->em->flush();
}
}
}
$this->em->flush();
$this->io->success('All process finished');
}