Exemple #1
0
 /**
  * @param mixed $id
  * @return int
  */
 public function delete($id = null)
 {
     if (!is_null($id)) {
         $this->where('id', '=', $id);
     }
     $sql = $this->grammar->compileDelete($this);
     return $this->connection->delete($sql, $this->getBindings());
 }