UserModel::mergeFinish PHP Method

mergeFinish() protected method

Finish merging user accounts.
protected mergeFinish ( integer $MergeID )
$MergeID integer The merge table ID.
    protected function mergeFinish($MergeID)
    {
        $Row = Gdn::sql()->getWhere('UserMerge', ['MergeID' => $MergeID])->firstRow(DATASET_TYPE_ARRAY);
        if (isset($Row['Attributes']) && !empty($Row['Attributes'])) {
            trace(dbdecode($Row['Attributes']), 'Merge Attributes');
        }
        $UserIDs = [$Row['OldUserID'], $Row['NewUserID']];
        foreach ($UserIDs as $UserID) {
            $this->counts('countdiscussions', $UserID);
            $this->counts('countcomments', $UserID);
        }
    }
UserModel