/**
* Deletes all rows with given $action and optionally $id.
*
* If $id is set only autogenerated entries will be removed.
*
* @param string $action
* @param mixed|null $id
*/
public function remove($action, $id = null)
{
try {
$this->innerGateway->remove($action, $id);
} catch (DBALException $e) {
throw new \RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new \RuntimeException('Database error', 0, $e);
}
}