public function setRole(CNabuRole $nb_role)
    {
        $this->nb_role = $nb_role;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_role, NABU_ROLE_FIELD_ID);
        }

        return $this;
    }
public function setRole(CNabuRole $nb_role)
    {
        $this->nb_role = $nb_role;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_role, NABU_ROLE_FIELD_ID);
        }

        return $this;
    }
public function setRole ( CNabuRole $ nb_role ) { $ this -> nb_role = $ nb_role ; if ( $ this instanceof CNabuDataObject ) { $ this -> transferValue ( $ nb_role , NABU_ROLE_FIELD_ID ) ; } return $ this ; }
Sets the Role instance that owns this object and sets the field containing the Role id.
@param CNabuRole $nb_role Role instance to be setted.
@param string $field Field name where the Role id will be stored.
@return mixed Returns $this to allow the cascade chain of setters.
Sets the Role instance that owns this object and sets the field containing the Role id .