public function delete($criteria = NULL) { $where = !is_null($criteria) ? 'WHERE ' . $criteria->toSql() : NULL; return $this->_connection->execute(sprintf('DELETE FROM %s %s', $this->_name->quoted(), $where)); }