src/Towel/Model/BaseModel.php
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);
  }
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);
  }
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 ) ; }
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
Gets a Field from Record .