/** * Returns how many synonyms exist for a tag identified by $tagId. * * @throws \RuntimeException * * @param mixed $tagId * @param string[] $translations * @param bool $useAlwaysAvailable * * @return int */ public function getSynonymCount($tagId, array $translations = null, $useAlwaysAvailable = true) { try { return $this->innerGateway->getSynonymCount($tagId, $translations, $useAlwaysAvailable); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * Returns the number of synonyms of a tag identified by $tagId. * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If the specified tag is not found * * @param mixed $tagId * @param string[] $translations * @param bool $useAlwaysAvailable * * @return int */ public function getSynonymCount($tagId, array $translations = null, $useAlwaysAvailable = true) { return $this->gateway->getSynonymCount($tagId, $translations, $useAlwaysAvailable); }