original_string: public function getField($name) {
      if (isset($this->fields[$name])) {
        return $this->record[$name];
      }
  
      if (isset($this->fetchedRecord[$name])) {
        return $this->fetchedRecord[$name];
      }
  
      throw new \Exception('Not a valid Field for Get ' . $name);
    }
code: public function getField($name) {
      if (isset($this->fields[$name])) {
        return $this->record[$name];
      }
  
      if (isset($this->fetchedRecord[$name])) {
        return $this->fetchedRecord[$name];
      }
  
      throw new \Exception('Not a valid Field for Get ' . $name);
    }
code_tokens: public function getField ( $ name ) { if ( isset ( $ this -> fields [ $ name ] ) ) { return $ this -> record [ $ name ] ; } if ( isset ( $ this -> fetchedRecord [ $ name ] ) ) { return $ this -> fetchedRecord [ $ name ] ; } throw new \ Exception ( 'Not a valid Field for Get ' . $ name ) ; }
docstring: Gets a Field from Record.
  
  If the field is not in record will check in fetchedRecord, fetched record may have
  some fields from the last query that you will need, like related records.
  
  @param $name
  @return mixed
  @throws \Exception
docstring_tokens: Gets a Field from Record .