示例#1
0
 /**
  * @param LeadMergeEvent $event
  */
 public function onLeadMerge(LeadMergeEvent $event)
 {
     $this->factory->getModel('asset')->getDownloadRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId());
 }
示例#2
0
 /**
  * @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());
 }
示例#3
0
 /**
  * @param LeadMergeEvent $event
  */
 public function onLeadMerge(LeadMergeEvent $event)
 {
     $em = $this->em;
     $em->getRepository('MauticStageBundle:LeadStageLog')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId());
 }
示例#4
0
 /**
  * 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());
 }
示例#5
0
 /**
  * @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());
 }
示例#6
0
 /**
  * @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());
 }
示例#7
0
 /**
  * @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);
 }
示例#8
0
 /**
  * @param LeadMergeEvent $event
  */
 public function onLeadMerge(LeadMergeEvent $event)
 {
     $this->em->getRepository('MauticDynamicContentBundle:Stat')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId());
 }
示例#9
0
 /**
  * @param LeadMergeEvent $event
  */
 public function onLeadMerge(LeadMergeEvent $event)
 {
     $this->factory->getEntityManager()->getRepository('MauticEmailBundle:Stat')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId());
 }
示例#10
0
 /**
  * @param LeadMergeEvent $event
  */
 public function onLeadMerge(LeadMergeEvent $event)
 {
     $this->em->getRepository('MauticFormBundle:Submission')->updateLead($event->getLoser()->getId(), $event->getVictor()->getId());
 }
示例#11
0
 /**
  * @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);
 }
示例#12
0
 /**
  * @param LeadMergeEvent $event
  */
 public function onLeadMerge(LeadMergeEvent $event)
 {
     $this->factory->getModel('form.submission')->getRepository()->updateLead($event->getLoser()->getId(), $event->getVictor()->getId());
 }