Exemplo n.º 1
0
 /**
  * Deletes rows from a table by primary key.
  * @param  mixed  primary key value(s)
  * @return int    number of deleted rows
  */
 public function delete($where)
 {
     $this->connection->query('DELETE FROM %n', $this->name, 'WHERE %n', $this->primary, 'IN (' . $this->primaryModifier, $where, ')');
     return $this->connection->affectedRows();
 }