public function assignTo($respondentRelationId, $relationFieldId)
    {
        if ($this->getRelationFieldId() == $relationFieldId && $this->getRelationId() == $respondentRelationId) return 0;

        return $this->_updateToken(array(
            'gto_id_relation'=>$respondentRelationId,
            'gto_id_relationfield'=>$relationFieldId
            ), $this->loader->getCurrentUser()->getUserId());
    }
public function assignTo($respondentRelationId, $relationFieldId)
    {
        if ($this->getRelationFieldId() == $relationFieldId && $this->getRelationId() == $respondentRelationId) return 0;

        return $this->_updateToken(array(
            'gto_id_relation'=>$respondentRelationId,
            'gto_id_relationfield'=>$relationFieldId
            ), $this->loader->getCurrentUser()->getUserId());
    }
public function assignTo ( $ respondentRelationId , $ relationFieldId ) { if ( $ this -> getRelationFieldId ( ) == $ relationFieldId && $ this -> getRelationId ( ) == $ respondentRelationId ) return 0 ; return $ this -> _updateToken ( array ( 'gto_id_relation' => $ respondentRelationId , 'gto_id_relationfield' => $ relationFieldId ) , $ this -> loader -> getCurrentUser ( ) -> getUserId ( ) ) ; }
Assign this token to a specific relation

@param int $respondentRelationId
@param int $relationFieldId
@return int 1 if data changed, 0 otherwise
Assign this token to a specific relation