/**
  * Update the crawler status
  *
  * @param \Cx\Core_Modules\LinkManager\Model\Entity\Crawler $crawler Crawler instance
  * @param string                                            $status  Crawler status
  */
 public function updateCrawlerStatus(\Cx\Core_Modules\LinkManager\Model\Entity\Crawler $crawler, $status)
 {
     $crawlerStartTime = $crawler->getStartTime()->format(ASCMS_DATE_FORMAT_INTERNATIONAL_DATETIME);
     //Update the crawler's totalLinks, totalBrokenLinks and status
     $totalLinks = $this->linkRepo->getLinksCountByLang($crawlerStartTime, $this->langId);
     $totalBrokenLinks = $this->linkRepo->getDetectedBrokenLinksCount($crawlerStartTime, $this->langId);
     $crawler->updateEndTime();
     $crawler->setRunStatus($status);
     $crawler->setTotalLinks($totalLinks);
     $crawler->setTotalBrokenLinks($totalBrokenLinks);
     $this->em->flush();
 }
 public function setTotalBrokenLinks($totalBrokenLinks)
 {
     $this->_load();
     return parent::setTotalBrokenLinks($totalBrokenLinks);
 }