public function importArticleStatistics()
    {
        $pendingImports = $this->em->getRepository('ImportBundle:PendingStatisticImport')->findAll();
        $this->consoleOutput->writeln("Importing article statistics...");

        foreach ($pendingImports as $import) {
            $this->importArticleStatistic($import->getOldId(), $import->getArticle()->getId());
            $this->em->remove($import);
            $this->em->flush($import);
        }
    }