public function updateBundlesData()
{
$this->output->writeln(sprintf('[%s] Will now update commits, files and tags', date('d-m-y H:i:s')));
$unitOfWork = $this->em->getUnitOfWork();
$page = 1;
$pager = $this->paginateExistingBundles($page);
do {
// Now update bundles with more precise GitHub data
/** @var $bundle Bundle */
foreach ($pager->getCurrentPageResults() as $bundle) {
if (UnitOfWork::STATE_MANAGED !== $unitOfWork->getEntityState($bundle)) {
continue;
}
$this->updateRepo($bundle);
}
++$page;
} while ($pager->hasNextPage() && $pager->setCurrentPage($page, false, true));
}