original_string: 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;
    }
code: 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;
    }
code_tokens: 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 ; }
docstring: Inserts the record.
  
  @return $this
docstring_tokens: Inserts the record .