public function setField($name, $value) {
    if (isset($this->fields[$name])) {
      $this->isDirty = TRUE;

      return $this->record[$name] = $value;
    }
    throw new \Exception('Not a valid Field for Set ' . $name);
  }
public function setField($name, $value) {
    if (isset($this->fields[$name])) {
      $this->isDirty = TRUE;

      return $this->record[$name] = $value;
    }
    throw new \Exception('Not a valid Field for Set ' . $name);
  }
public function setField ( $ name , $ value ) { if ( isset ( $ this -> fields [ $ name ] ) ) { $ this -> isDirty = TRUE ; return $ this -> record [ $ name ] = $ value ; } throw new \ Exception ( 'Not a valid Field for Set ' . $ name ) ; }
Sets a field to the record.

@param $name
@param $value
@return mixed

@throws \Exception
Sets a field to the record .