/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->factory->getModel('asset')->getDownloadRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->pageModel->getHitRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->pageVideoModel->getHitRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $em = $this->em; $em->getRepository('MauticStageBundle:LeadStageLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * Update records after lead merge * * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->em->getRepository('MauticCampaignBundle:LeadEventLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->em->getRepository('MauticCampaignBundle:Lead')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->factory->getModel('page')->getHitRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->factory->getModel('page.video')->getHitRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->em->getRepository('MauticPointBundle:LeadPointLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->em->getRepository('MauticPointBundle:LeadTriggerLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param Events\LeadMergeEvent $event */ public function onLeadMerge(Events\LeadMergeEvent $event) { $this->factory->getEntityManager()->getRepository('MauticLeadBundle:PointsChangeLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->factory->getEntityManager()->getRepository('MauticLeadBundle:ListLead')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->factory->getEntityManager()->getRepository('MauticLeadBundle:LeadNote')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $log = array("bundle" => "lead", "object" => "lead", "objectId" => $event->getLoser()->getId(), "action" => "merge", "details" => array('merged_into' => $event->getVictor()->getId()), "ipAddress" => $this->factory->getIpAddressFromRequest()); $this->factory->getModel('core.auditLog')->writeToLog($log); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->em->getRepository('MauticDynamicContentBundle:Stat')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->factory->getEntityManager()->getRepository('MauticEmailBundle:Stat')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->em->getRepository('MauticFormBundle:Submission')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }
/** * @param Events\LeadMergeEvent $event */ public function onLeadMerge(Events\LeadMergeEvent $event) { $this->em->getRepository('MauticLeadBundle:PointsChangeLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->em->getRepository('MauticLeadBundle:ListLead')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $this->em->getRepository('MauticLeadBundle:LeadNote')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); $log = ['bundle' => 'lead', 'object' => 'lead', 'objectId' => $event->getLoser()->getId(), 'action' => 'merge', 'details' => ['merged_into' => $event->getVictor()->getId()], 'ipAddress' => $this->ipLookupHelper->getIpAddressFromRequest()]; $this->auditLogModel->writeToLog($log); }
/** * @param LeadMergeEvent $event */ public function onLeadMerge(LeadMergeEvent $event) { $this->factory->getModel('form.submission')->getRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId()); }