Ejemplo n.º 1
0
 function onUserMerge(Am_Event $event)
 {
     $target = $event->getTarget();
     $source = $event->getSource();
     $this->getDi()->db->query('UPDATE ?_user SET subusers_parent_id=? WHERE subusers_parent_id=?', $target->pk(), $source->pk());
     $this->getDi()->db->query('UPDATE ?_subusers_subscription SET user_id=? WHERE user_id=?', $target->pk(), $source->pk());
 }
Ejemplo n.º 2
0
 function onUserMerge(Am_Event $event)
 {
     $target = $event->getTarget();
     $source = $event->getSource();
     $this->getDi()->db->query('UPDATE ?_aff_click SET aff_id=? WHERE aff_id=?', $target->pk(), $source->pk());
     $this->getDi()->db->query('UPDATE ?_aff_commission SET aff_id=? WHERE aff_id=?', $target->pk(), $source->pk());
     $this->getDi()->db->query('UPDATE ?_aff_lead SET aff_id=? WHERE aff_id=?', $target->pk(), $source->pk());
     $this->getDi()->db->query('UPDATE ?_aff_payout_detail SET aff_id=? WHERE aff_id=?', $target->pk(), $source->pk());
     $this->getDi()->db->query('UPDATE ?_user SET aff_id=? WHERE aff_id=?', $target->pk(), $source->pk());
 }
Ejemplo n.º 3
0
 function onUserMerge(Am_Event $event)
 {
     $target = $event->getTarget();
     $source = $event->getSource();
     $this->getDi()->db->query('UPDATE ?_helpdesk_ticket SET user_id=? WHERE user_id=?', $target->pk(), $source->pk());
 }