From: Raphaƫl Gertz Date: Fri, 10 Nov 2023 12:06:59 +0000 (+0100) Subject: Remove unused entities X-Git-Tag: 0.1~19 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/237d11643f6cd5dedcd1dbf659b66d41633b851c Remove unused entities --- diff --git a/Entity/ArticleKeyword.php b/Entity/ArticleKeyword.php deleted file mode 100644 index 287f491..0000000 --- a/Entity/ArticleKeyword.php +++ /dev/null @@ -1,27 +0,0 @@ -article_id = $article_id; - $this->keyword_id = $keyword_id; - } -} diff --git a/Entity/Author.php b/Entity/Author.php deleted file mode 100644 index fa493fe..0000000 --- a/Entity/Author.php +++ /dev/null @@ -1,241 +0,0 @@ -articles = new \Doctrine\Common\Collections\ArrayCollection(); - $this->author_translations = new \Doctrine\Common\Collections\ArrayCollection(); - } - - /** - * Get id - * - * @return integer - */ - public function getId() - { - return $this->id; - } - - /** - * Set name - * - * @param string $name - * - * @return Author - */ - public function setName($name) - { - $this->name = $name; - - return $this; - } - - /** - * Get name - * - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Set created - * - * @param \DateTime $created - * - * @return Author - */ - public function setCreated($created) - { - $this->created = $created; - - return $this; - } - - /** - * Get created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->created; - } - - /** - * Set updated - * - * @param \DateTime $updated - * - * @return Author - */ - public function setUpdated($updated) - { - $this->updated = $updated; - - return $this; - } - - /** - * Get updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->updated; - } - - /** - * Add article - * - * @param \Rapsys\BlogBundle\Entity\Article $article - * - * @return Author - */ - public function addArticle(\Rapsys\BlogBundle\Entity\Article $article) - { - $this->articles[] = $article; - - return $this; - } - - /** - * Remove article - * - * @param \Rapsys\BlogBundle\Entity\Article $article - */ - public function removeArticle(\Rapsys\BlogBundle\Entity\Article $article) - { - $this->articles->removeElement($article); - } - - /** - * Get articles - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getArticles() - { - return $this->articles; - } - - /** - * Add authorTranslation - * - * @param \Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation - * - * @return Author - */ - public function addAuthorTranslation(\Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation) - { - $this->author_translations[] = $authorTranslation; - - return $this; - } - - /** - * Remove authorTranslation - * - * @param \Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation - */ - public function removeAuthorTranslation(\Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation) - { - $this->author_translations->removeElement($authorTranslation); - } - - /** - * Get authorTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getAuthorTranslations() - { - return $this->author_translations; - } - - /** - * Set id - * - * @param integer $id - * - * @return Author - */ - public function setId($id) - { - $this->id = $id; - - return $this; - } - /** - * @var string - */ - private $slug; - - - /** - * Set slug - * - * @param string $slug - * - * @return Author - */ - public function setSlug($slug) - { - $this->slug = $slug; - - return $this; - } - - /** - * Get slug - * - * @return string - */ - public function getSlug() - { - return $this->slug; - } -} diff --git a/Entity/AuthorTranslation.php b/Entity/AuthorTranslation.php deleted file mode 100644 index 64d015a..0000000 --- a/Entity/AuthorTranslation.php +++ /dev/null @@ -1,213 +0,0 @@ -author_id = $authorId; - - return $this; - } - - /** - * Get authorId - * - * @return integer - */ - public function getAuthorId() - { - return $this->author_id; - } - - /** - * Set languageId - * - * @param integer $languageId - * - * @return AuthorTranslation - */ - public function setLanguageId($languageId) - { - $this->language_id = $languageId; - - return $this; - } - - /** - * Get languageId - * - * @return integer - */ - public function getLanguageId() - { - return $this->language_id; - } - - /** - * Set description - * - * @param string $description - * - * @return AuthorTranslation - */ - public function setDescription($description) - { - $this->description = $description; - - return $this; - } - - /** - * Get description - * - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Set created - * - * @param \DateTime $created - * - * @return AuthorTranslation - */ - public function setCreated($created) - { - $this->created = $created; - - return $this; - } - - /** - * Get created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->created; - } - - /** - * Set updated - * - * @param \DateTime $updated - * - * @return AuthorTranslation - */ - public function setUpdated($updated) - { - $this->updated = $updated; - - return $this; - } - - /** - * Get updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->updated; - } - - /** - * Set author - * - * @param \Rapsys\BlogBundle\Entity\Author $author - * - * @return AuthorTranslation - */ - public function setAuthor(\Rapsys\BlogBundle\Entity\Author $author = null) - { - $this->author = $author; - - return $this; - } - - /** - * Get author - * - * @return \Rapsys\BlogBundle\Entity\Author - */ - public function getAuthor() - { - return $this->author; - } - /** - * @var \Rapsys\BlogBundle\Entity\Language - */ - private $language; - - - /** - * Set language - * - * @param \Rapsys\BlogBundle\Entity\Language $language - * - * @return AuthorTranslation - */ - public function setLanguage(\Rapsys\BlogBundle\Entity\Language $language = null) - { - $this->language = $language; - - return $this; - } - - /** - * Get language - * - * @return \Rapsys\BlogBundle\Entity\Language - */ - public function getLanguage() - { - return $this->language; - } -} diff --git a/Entity/Language.php b/Entity/Language.php deleted file mode 100644 index cfb94c4..0000000 --- a/Entity/Language.php +++ /dev/null @@ -1,361 +0,0 @@ -article_translations = new \Doctrine\Common\Collections\ArrayCollection(); - $this->keyword_translations = new \Doctrine\Common\Collections\ArrayCollection(); - $this->site_translations = new \Doctrine\Common\Collections\ArrayCollection(); - $this->language_translations = new \Doctrine\Common\Collections\ArrayCollection(); - $this->target_translations = new \Doctrine\Common\Collections\ArrayCollection(); - } - - /** - * Get id - * - * @return integer - */ - public function getId() - { - return $this->id; - } - - /** - * Set iso6391 - * - * @param string $iso6391 - * - * @return Language - */ - public function setIso6391($iso6391) - { - $this->iso6391 = $iso6391; - - return $this; - } - - /** - * Get iso6391 - * - * @return string - */ - public function getIso6391() - { - return $this->iso6391; - } - - /** - * Set iso6393 - * - * @param string $iso6393 - * - * @return Language - */ - public function setIso6393($iso6393) - { - $this->iso6393 = $iso6393; - - return $this; - } - - /** - * Get iso6393 - * - * @return string - */ - public function getIso6393() - { - return $this->iso6393; - } - - /** - * Set created - * - * @param \DateTime $created - * - * @return Language - */ - public function setCreated($created) - { - $this->created = $created; - - return $this; - } - - /** - * Get created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->created; - } - - /** - * Set updated - * - * @param \DateTime $updated - * - * @return Language - */ - public function setUpdated($updated) - { - $this->updated = $updated; - - return $this; - } - - /** - * Get updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->updated; - } - - /** - * Add articleTranslation - * - * @param \Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation - * - * @return Language - */ - public function addArticleTranslation(\Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation) - { - $this->article_translations[] = $articleTranslation; - - return $this; - } - - /** - * Remove articleTranslation - * - * @param \Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation - */ - public function removeArticleTranslation(\Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation) - { - $this->article_translations->removeElement($articleTranslation); - } - - /** - * Get articleTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getArticleTranslations() - { - return $this->article_translations; - } - - /** - * Add keywordTranslation - * - * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation - * - * @return Language - */ - public function addKeywordTranslation(\Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation) - { - $this->keyword_translations[] = $keywordTranslation; - - return $this; - } - - /** - * Remove keywordTranslation - * - * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation - */ - public function removeKeywordTranslation(\Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation) - { - $this->keyword_translations->removeElement($keywordTranslation); - } - - /** - * Get keywordTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getKeywordTranslations() - { - return $this->keyword_translations; - } - - /** - * Add siteTranslation - * - * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation - * - * @return Language - */ - public function addSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation) - { - $this->site_translations[] = $siteTranslation; - - return $this; - } - - /** - * Remove siteTranslation - * - * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation - */ - public function removeSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation) - { - $this->site_translations->removeElement($siteTranslation); - } - - /** - * Get siteTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getSiteTranslations() - { - return $this->site_translations; - } - - /** - * Add languageTranslation - * - * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation - * - * @return Language - */ - public function addLanguageTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation) - { - $this->language_translations[] = $languageTranslation; - - return $this; - } - - /** - * Remove languageTranslation - * - * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation - */ - public function removeLanguageTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $languageTranslation) - { - $this->language_translations->removeElement($languageTranslation); - } - - /** - * Get languageTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getLanguageTranslations() - { - return $this->language_translations; - } - - /** - * Add targetTranslation - * - * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation - * - * @return Language - */ - public function addTargetTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation) - { - $this->target_translations[] = $targetTranslation; - - return $this; - } - - /** - * Remove targetTranslation - * - * @param \Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation - */ - public function removeTargetTranslation(\Rapsys\BlogBundle\Entity\LanguageTranslation $targetTranslation) - { - $this->target_translations->removeElement($targetTranslation); - } - - /** - * Get targetTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getTargetTranslations() - { - return $this->target_translations; - } - - /** - * Set id - * - * @param integer $id - * - * @return Language - */ - public function setId($id) - { - $this->id = $id; - - return $this; - } -} diff --git a/Entity/LanguageTranslation.php b/Entity/LanguageTranslation.php deleted file mode 100644 index 021242d..0000000 --- a/Entity/LanguageTranslation.php +++ /dev/null @@ -1,213 +0,0 @@ -language_id = $languageId; - - return $this; - } - - /** - * Get languageId - * - * @return integer - */ - public function getLanguageId() - { - return $this->language_id; - } - - /** - * Set targetId - * - * @param integer $targetId - * - * @return LanguageTranslation - */ - public function setTargetId($targetId) - { - $this->target_id = $targetId; - - return $this; - } - - /** - * Get targetId - * - * @return integer - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Set title - * - * @param string $title - * - * @return LanguageTranslation - */ - public function setTitle($title) - { - $this->title = $title; - - return $this; - } - - /** - * Get title - * - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Set created - * - * @param \DateTime $created - * - * @return LanguageTranslation - */ - public function setCreated($created) - { - $this->created = $created; - - return $this; - } - - /** - * Get created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->created; - } - - /** - * Set updated - * - * @param \DateTime $updated - * - * @return LanguageTranslation - */ - public function setUpdated($updated) - { - $this->updated = $updated; - - return $this; - } - - /** - * Get updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->updated; - } - - /** - * Set language - * - * @param \Rapsys\BlogBundle\Entity\Language $language - * - * @return LanguageTranslation - */ - public function setLanguage(\Rapsys\BlogBundle\Entity\Language $language = null) - { - $this->language = $language; - - return $this; - } - - /** - * Get language - * - * @return \Rapsys\BlogBundle\Entity\Language - */ - public function getLanguage() - { - return $this->language; - } - - /** - * Set target - * - * @param \Rapsys\BlogBundle\Entity\Language $target - * - * @return LanguageTranslation - */ - public function setTarget(\Rapsys\BlogBundle\Entity\Language $target = null) - { - $this->target = $target; - - return $this; - } - - /** - * Get target - * - * @return \Rapsys\BlogBundle\Entity\Language - */ - public function getTarget() - { - return $this->target; - } -} diff --git a/Entity/Site.php b/Entity/Site.php deleted file mode 100644 index 3e240e5..0000000 --- a/Entity/Site.php +++ /dev/null @@ -1,212 +0,0 @@ -articles = new \Doctrine\Common\Collections\ArrayCollection(); - $this->site_translations = new \Doctrine\Common\Collections\ArrayCollection(); - } - - /** - * Get id - * - * @return integer - */ - public function getId() - { - return $this->id; - } - - /** - * Set domain - * - * @param string $domain - * - * @return Site - */ - public function setDomain($domain) - { - $this->domain = $domain; - - return $this; - } - - /** - * Get domain - * - * @return string - */ - public function getDomain() - { - return $this->domain; - } - - /** - * Set created - * - * @param \DateTime $created - * - * @return Site - */ - public function setCreated($created) - { - $this->created = $created; - - return $this; - } - - /** - * Get created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->created; - } - - /** - * Set updated - * - * @param \DateTime $updated - * - * @return Site - */ - public function setUpdated($updated) - { - $this->updated = $updated; - - return $this; - } - - /** - * Get updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->updated; - } - - /** - * Add article - * - * @param \Rapsys\BlogBundle\Entity\Article $article - * - * @return Site - */ - public function addArticle(\Rapsys\BlogBundle\Entity\Article $article) - { - $this->articles[] = $article; - - return $this; - } - - /** - * Remove article - * - * @param \Rapsys\BlogBundle\Entity\Article $article - */ - public function removeArticle(\Rapsys\BlogBundle\Entity\Article $article) - { - $this->articles->removeElement($article); - } - - /** - * Get articles - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getArticles() - { - return $this->articles; - } - - /** - * Add siteTranslation - * - * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation - * - * @return Site - */ - public function addSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation) - { - $this->site_translations[] = $siteTranslation; - - return $this; - } - - /** - * Remove siteTranslation - * - * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation - */ - public function removeSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation) - { - $this->site_translations->removeElement($siteTranslation); - } - - /** - * Get siteTranslations - * - * @return \Doctrine\Common\Collections\Collection - */ - public function getSiteTranslations() - { - return $this->site_translations; - } - - /** - * Set id - * - * @param integer $id - * - * @return Site - */ - public function setId($id) - { - $this->id = $id; - - return $this; - } -} diff --git a/Entity/SiteTranslation.php b/Entity/SiteTranslation.php deleted file mode 100644 index caf2d99..0000000 --- a/Entity/SiteTranslation.php +++ /dev/null @@ -1,242 +0,0 @@ -site_id = $siteId; - - return $this; - } - - /** - * Get siteId - * - * @return integer - */ - public function getSiteId() - { - return $this->site_id; - } - - /** - * Set languageId - * - * @param integer $languageId - * - * @return SiteTranslation - */ - public function setLanguageId($languageId) - { - $this->language_id = $languageId; - - return $this; - } - - /** - * Get languageId - * - * @return integer - */ - public function getLanguageId() - { - return $this->language_id; - } - - /** - * Set title - * - * @param string $title - * - * @return SiteTranslation - */ - public function setTitle($title) - { - $this->title = $title; - - return $this; - } - - /** - * Get title - * - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Set description - * - * @param string $description - * - * @return SiteTranslation - */ - public function setDescription($description) - { - $this->description = $description; - - return $this; - } - - /** - * Get description - * - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Set created - * - * @param \DateTime $created - * - * @return SiteTranslation - */ - public function setCreated($created) - { - $this->created = $created; - - return $this; - } - - /** - * Get created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->created; - } - - /** - * Set updated - * - * @param \DateTime $updated - * - * @return SiteTranslation - */ - public function setUpdated($updated) - { - $this->updated = $updated; - - return $this; - } - - /** - * Get updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->updated; - } - - /** - * Set site - * - * @param \Rapsys\BlogBundle\Entity\Site $site - * - * @return SiteTranslation - */ - public function setSite(\Rapsys\BlogBundle\Entity\Site $site = null) - { - $this->site = $site; - - return $this; - } - - /** - * Get site - * - * @return \Rapsys\BlogBundle\Entity\Site - */ - public function getSite() - { - return $this->site; - } - - /** - * Set language - * - * @param \Rapsys\BlogBundle\Entity\Language $language - * - * @return SiteTranslation - */ - public function setLanguage(\Rapsys\BlogBundle\Entity\Language $language = null) - { - $this->language = $language; - - return $this; - } - - /** - * Get language - * - * @return \Rapsys\BlogBundle\Entity\Language - */ - public function getLanguage() - { - return $this->language; - } -}