src/Towel/Model/BaseModel.php
public function insert() {
    $this->db()->insert($this->table, $this->record);
    $id = $this->db()->lastInsertId();
    $this->record[$this->id_name] = $id;
    $this->isDirty = FALSE;

    return $this;
  }
public function insert() {
    $this->db()->insert($this->table, $this->record);
    $id = $this->db()->lastInsertId();
    $this->record[$this->id_name] = $id;
    $this->isDirty = FALSE;

    return $this;
  }
public function insert ( ) { $ this -> db ( ) -> insert ( $ this -> table , $ this -> record ) ; $ id = $ this -> db ( ) -> lastInsertId ( ) ; $ this -> record [ $ this -> id_name ] = $ id ; $ this -> isDirty = FALSE ; return $ this ; }
Inserts the record.

@return $this
Inserts the record .