public function updateFromArray($newData)
 {
     $this->_load();
     return parent::updateFromArray($newData);
 }
 /**
  * Recheck all the links in the page and update those links status code
  * 
  * @param \Cx\Core_Modules\LinkManager\Model\Entity\Link    $link       Parent link obejct
  * @param array                                             $subLinks   Links in the parent link
  *
  * @return null
  */
 public function recheckPage(\Cx\Core_Modules\LinkManager\Model\Entity\Link $link, $subLinks = array())
 {
     //If there is no recheck links then return
     if (!$subLinks) {
         return;
     }
     foreach ($subLinks as $subLinkUrl => $subLinkName) {
         //If the link already exists then proceed with next link
         if ($this->linkRepository->getLinkByPath($subLinkUrl)) {
             continue;
         }
         $urlStatus = $this->getUrlStatus($subLinkUrl);
         $isInternalLink = $this->getController('Url')->isInternalUrl($subLinkUrl);
         $subLink = new \Cx\Core_Modules\LinkManager\Model\Entity\Link();
         $subLink->setLang($link->getLang());
         $subLink->setRefererPath($link->getRefererPath());
         $subLink->setLeadPath($link->getLeadPath());
         $subLink->setEntryTitle($link->getEntryTitle());
         $subLink->setDetectedTime($link->getDetectedTime());
         $subLink->setUpdatedBy(\FWUser::getFWUserObject()->objUser->getId());
         $subLink->setBrokenLinkText($subLinkName);
         $subLink->setRequestedPath($subLinkUrl);
         $subLink->setLinkStatusCode($urlStatus);
         $subLink->setFlagStatus($urlStatus == 200 ? 1 : 0);
         $subLink->setLinkRecheck(1);
         $subLink->setRequestedLinkType($isInternalLink ? 'internal' : 'external');
         $subLink->setLinkStatus(1);
         $this->em->persist($subLink);
     }
     $this->em->flush();
 }