示例#1
1
文件: Builder.php 项目: denise92/cms
 /**
  * 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);
 }