Creates delete query.
string $table: The table name.
array $keys: Array with object keys indexed by field name.
DeleteQuery Returns a new DeleteQuery object for the active database.
protected function dbDelete($table, $keys) {
$query = $this->connection
->delete($table, $this->options);
foreach ($keys as $field => $value) {
$query
->condition($field, $value);
}
return $query;
}