Example #1
1
 /**
  * Insert a new record and get the value of the primary key.
  *
  * @param  array   $values
  * @param  string  $sequence
  * @return int
  */
 public function insertGetId(array $values, $sequence = null)
 {
     $sql = $this->grammar->compileInsertGetId($this, $values, $sequence);
     $values = $this->cleanBindings($values);
     return $this->processor->processInsertGetId($this, $sql, $values, $sequence);
 }