src/FlexiPeeHP/FlexiBeeRW.php
public function changeExternalID($selector, $newValue, $forID = null)
    {
        $change['@removeExternalIds'] = 'ext:'.$selector.':';
        $change['id']                 = [is_null($forID) ? $this->getRecordID() : $forID,
            'ext:'.$selector.':'.$newValue];
        return $this->insertToFlexiBee($change);
    }
public function changeExternalID($selector, $newValue, $forID = null)
    {
        $change['@removeExternalIds'] = 'ext:'.$selector.':';
        $change['id']                 = [is_null($forID) ? $this->getRecordID() : $forID,
            'ext:'.$selector.':'.$newValue];
        return $this->insertToFlexiBee($change);
    }
public function changeExternalID ( $ selector , $ newValue , $ forID = null ) { $ change [ '@removeExternalIds' ] = 'ext:' . $ selector . ':' ; $ change [ 'id' ] = [ is_null ( $ forID ) ? $ this -> getRecordID ( ) : $ forID , 'ext:' . $ selector . ':' . $ newValue ] ; return $ this -> insertToFlexiBee ( $ change ) ; }
Change Value of external id identified by selector. Add new if not exists

@param string     $selector ext:$selector:$newValue
@param string|int $newValue string or number
@param string|int $forID    Other than current record id

@return array operation result
Change Value of external id identified by selector . Add new if not exists