/** * @param LeadChangeEvent $event */ public function onLeadChange(LeadChangeEvent $event) { $this->factory->getModel('asset')->getDownloadRepository()->updateLeadByTrackingId($event->getNewLead()->getId(), $event->getNewTrackingId(), $event->getOldTrackingId()); }
/** * @param LeadChangeEvent $event */ public function onLeadChange(LeadChangeEvent $event) { $this->pageModel->getHitRepository()->updateLeadByTrackingId($event->getNewLead()->getId(), $event->getNewTrackingId(), $event->getOldTrackingId()); }