public function setUser(CNabuUser $nb_user)
    {
        $this->nb_user = $nb_user;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_user, NABU_USER_FIELD_ID);
        }

        return $this;
    }
public function setUser(CNabuUser $nb_user)
    {
        $this->nb_user = $nb_user;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_user, NABU_USER_FIELD_ID);
        }

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