public function save($options = array()) {
    $relationship = $this->relationship();
    if (!$relationship) {
      throw new PodioMissingRelationshipError('{"error_description":"Field is missing relationship to item"}', null, null);
    }
    if (!$this->id && !$this->external_id) {
      throw new PodioDataIntegrityError('Field must have id or external_id set.');
    }
    $attributes = $this->as_json(false);
    return self::update($relationship['instance']->id, $this->id ? $this->id : $this->external_id, $attributes, $options);
  }
public function save($options = array()) {
    $relationship = $this->relationship();
    if (!$relationship) {
      throw new PodioMissingRelationshipError('{"error_description":"Field is missing relationship to item"}', null, null);
    }
    if (!$this->id && !$this->external_id) {
      throw new PodioDataIntegrityError('Field must have id or external_id set.');
    }
    $attributes = $this->as_json(false);
    return self::update($relationship['instance']->id, $this->id ? $this->id : $this->external_id, $attributes, $options);
  }
public function save ( $ options = array ( ) ) { $ relationship = $ this -> relationship ( ) ; if ( ! $ relationship ) { throw new PodioMissingRelationshipError ( '{"error_description":"Field is missing relationship to item"}' , null , null ) ; } if ( ! $ this -> id && ! $ this -> external_id ) { throw new PodioDataIntegrityError ( 'Field must have id or external_id set.' ) ; } $ attributes = $ this -> as_json ( false ) ; return self :: update ( $ relationship [ 'instance' ] -> id , $ this -> id ? $ this -> id : $ this -> external_id , $ attributes , $ options ) ; }
Saves the value of the field
Saves the value of the field