original_string: private function create($model)
      {
          $attrs = $this->getMutableAttributes($model);
          $this->db
              ->connect()
              ->insert($this->table, array_keys($attrs))
              ->execute(array_values($attrs));
          $model->{$this->key} = $this->db->lastInsertId();
      }
code: private function create($model)
      {
          $attrs = $this->getMutableAttributes($model);
          $this->db
              ->connect()
              ->insert($this->table, array_keys($attrs))
              ->execute(array_values($attrs));
          $model->{$this->key} = $this->db->lastInsertId();
      }
code_tokens: private function create ( $ model ) { $ attrs = $ this -> getMutableAttributes ( $ model ) ; $ this -> db -> connect ( ) -> insert ( $ this -> table , array_keys ( $ attrs ) ) -> execute ( array_values ( $ attrs ) ) ; $ model -> { $ this -> key } = $ this -> db -> lastInsertId ( ) ; }
docstring: Create new entry.
  
  @param mixed $model  Model instance.
docstring_tokens: Create new entry .