/**
  * Deletes tag identified by $tagId, including its synonyms and all tags under it.
  *
  * @throws \RuntimeException
  *
  * If $tagId is a synonym, only the synonym is deleted
  *
  * @param mixed $tagId
  */
 public function deleteTag($tagId)
 {
     try {
         $this->innerGateway->deleteTag($tagId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Exemple #2
0
 /**
  * Deletes tag identified by $tagId, including its synonyms and all tags under it.
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If the specified tag is not found
  *
  * If $tagId is a synonym, only the synonym is deleted
  *
  * @param mixed $tagId
  */
 public function deleteTag($tagId)
 {
     $tagInfo = $this->loadTagInfo($tagId);
     $this->gateway->deleteTag($tagInfo->id);
     $this->updateSubtreeModificationTime($tagInfo->parentTagId);
 }