/**
* Downgrades autogenerated entry matched by given $action and $languageId and negatively matched by
* composite primary key.
*
* If language mask of the found entry is composite (meaning it consists of multiple language ids) given
* $languageId will be removed from mask. Otherwise entry will be marked as history.
*
* @param string $action
* @param mixed $languageId
* @param mixed $newId
* @param mixed $parentId
* @param string $textMD5
*/
public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5)
{
try {
$this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5);
} catch (DBALException $e) {
throw new \RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new \RuntimeException('Database error', 0, $e);
}
}