From 9ad367710337f576ffa541975db98b0ace80bbce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 25 Feb 2018 06:05:15 +0100 Subject: [PATCH 1/1] Add entities --- Entity/Article.php | 241 ++++++++++++++++++++++ Entity/ArticleKeyword.php | 27 +++ Entity/ArticleTranslation.php | 300 +++++++++++++++++++++++++++ Entity/Author.php | 241 ++++++++++++++++++++++ Entity/AuthorTranslation.php | 213 +++++++++++++++++++ Entity/Keyword.php | 183 +++++++++++++++++ Entity/KeywordTranslation.php | 271 +++++++++++++++++++++++++ Entity/Language.php | 361 +++++++++++++++++++++++++++++++++ Entity/LanguageTranslation.php | 213 +++++++++++++++++++ Entity/Site.php | 212 +++++++++++++++++++ Entity/SiteTranslation.php | 242 ++++++++++++++++++++++ 11 files changed, 2504 insertions(+) create mode 100644 Entity/Article.php create mode 100644 Entity/ArticleKeyword.php create mode 100644 Entity/ArticleTranslation.php create mode 100644 Entity/Author.php create mode 100644 Entity/AuthorTranslation.php create mode 100644 Entity/Keyword.php create mode 100644 Entity/KeywordTranslation.php create mode 100644 Entity/Language.php create mode 100644 Entity/LanguageTranslation.php create mode 100644 Entity/Site.php create mode 100644 Entity/SiteTranslation.php diff --git a/Entity/Article.php b/Entity/Article.php new file mode 100644 index 0000000..39b68fc --- /dev/null +++ b/Entity/Article.php @@ -0,0 +1,241 @@ +article_translations = new \Doctrine\Common\Collections\ArrayCollection(); + $this->keywords = new \Doctrine\Common\Collections\ArrayCollection(); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set created + * + * @param \DateTime $created + * + * @return Article + */ + 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 Article + */ + 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 Article + */ + 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; + } + + /** + * Set site + * + * @param \Rapsys\BlogBundle\Entity\Site $site + * + * @return Article + */ + 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 author + * + * @param \Rapsys\BlogBundle\Entity\Author $author + * + * @return Article + */ + 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; + } + + /** + * Add keyword + * + * @param \Rapsys\BlogBundle\Entity\Keyword $keyword + * + * @return Article + */ + public function addKeyword(\Rapsys\BlogBundle\Entity\Keyword $keyword) + { + $this->keywords[] = $keyword; + + return $this; + } + + /** + * Remove keyword + * + * @param \Rapsys\BlogBundle\Entity\Keyword $keyword + */ + public function removeKeyword(\Rapsys\BlogBundle\Entity\Keyword $keyword) + { + $this->keywords->removeElement($keyword); + } + + /** + * Get keywords + * + * @return \Doctrine\Common\Collections\Collection + */ + public function getKeywords() + { + return $this->keywords; + } + + /** + * Set id + * + * @param integer $id + * + * @return Article + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } +} diff --git a/Entity/ArticleKeyword.php b/Entity/ArticleKeyword.php new file mode 100644 index 0000000..287f491 --- /dev/null +++ b/Entity/ArticleKeyword.php @@ -0,0 +1,27 @@ +article_id = $article_id; + $this->keyword_id = $keyword_id; + } +} diff --git a/Entity/ArticleTranslation.php b/Entity/ArticleTranslation.php new file mode 100644 index 0000000..8ca5c02 --- /dev/null +++ b/Entity/ArticleTranslation.php @@ -0,0 +1,300 @@ +article_id = $articleId; + + return $this; + } + + /** + * Get articleId + * + * @return integer + */ + public function getArticleId() + { + return $this->article_id; + } + + /** + * Set languageId + * + * @param integer $languageId + * + * @return ArticleTranslation + */ + 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 ArticleTranslation + */ + 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 ArticleTranslation + */ + public function setDescription($description) + { + $this->description = $description; + + return $this; + } + + /** + * Get description + * + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Set body + * + * @param string $body + * + * @return ArticleTranslation + */ + public function setBody($body) + { + $this->body = $body; + + return $this; + } + + /** + * Get body + * + * @return string + */ + public function getBody() + { + return $this->body; + } + + /** + * Set created + * + * @param \DateTime $created + * + * @return ArticleTranslation + */ + 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 ArticleTranslation + */ + public function setUpdated($updated) + { + $this->updated = $updated; + + return $this; + } + + /** + * Get updated + * + * @return \DateTime + */ + public function getUpdated() + { + return $this->updated; + } + + /** + * Set article + * + * @param \Rapsys\BlogBundle\Entity\Article $article + * + * @return ArticleTranslation + */ + public function setArticle(\Rapsys\BlogBundle\Entity\Article $article = null) + { + $this->article = $article; + + return $this; + } + + /** + * Get article + * + * @return \Rapsys\BlogBundle\Entity\Article + */ + public function getArticle() + { + return $this->article; + } + + /** + * Set language + * + * @param \Rapsys\BlogBundle\Entity\Language $language + * + * @return ArticleTranslation + */ + 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; + } + /** + * @var string + */ + private $slug; + + + /** + * Set slug + * + * @param string $slug + * + * @return ArticleTranslation + */ + public function setSlug($slug) + { + $this->slug = $slug; + + return $this; + } + + /** + * Get slug + * + * @return string + */ + public function getSlug() + { + return $this->slug; + } +} diff --git a/Entity/Author.php b/Entity/Author.php new file mode 100644 index 0000000..fa493fe --- /dev/null +++ b/Entity/Author.php @@ -0,0 +1,241 @@ +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 new file mode 100644 index 0000000..64d015a --- /dev/null +++ b/Entity/AuthorTranslation.php @@ -0,0 +1,213 @@ +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/Keyword.php b/Entity/Keyword.php new file mode 100644 index 0000000..228807d --- /dev/null +++ b/Entity/Keyword.php @@ -0,0 +1,183 @@ +keyword_translations = new \Doctrine\Common\Collections\ArrayCollection(); + $this->articles = new \Doctrine\Common\Collections\ArrayCollection(); + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + /** + * Set created + * + * @param \DateTime $created + * + * @return Keyword + */ + 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 Keyword + */ + public function setUpdated($updated) + { + $this->updated = $updated; + + return $this; + } + + /** + * Get updated + * + * @return \DateTime + */ + public function getUpdated() + { + return $this->updated; + } + + /** + * Add keywordTranslation + * + * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation + * + * @return Keyword + */ + 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 article + * + * @param \Rapsys\BlogBundle\Entity\Article $article + * + * @return Keyword + */ + 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; + } + + /** + * Set id + * + * @param integer $id + * + * @return Keyword + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } +} diff --git a/Entity/KeywordTranslation.php b/Entity/KeywordTranslation.php new file mode 100644 index 0000000..61bc1f7 --- /dev/null +++ b/Entity/KeywordTranslation.php @@ -0,0 +1,271 @@ +keyword_id = $keywordId; + + return $this; + } + + /** + * Get keywordId + * + * @return integer + */ + public function getKeywordId() + { + return $this->keyword_id; + } + + /** + * Set languageId + * + * @param integer $languageId + * + * @return KeywordTranslation + */ + 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 KeywordTranslation + */ + 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 KeywordTranslation + */ + 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 KeywordTranslation + */ + public function setUpdated($updated) + { + $this->updated = $updated; + + return $this; + } + + /** + * Get updated + * + * @return \DateTime + */ + public function getUpdated() + { + return $this->updated; + } + + /** + * Set keyword + * + * @param \Rapsys\BlogBundle\Entity\Keyword $keyword + * + * @return KeywordTranslation + */ + public function setKeyword(\Rapsys\BlogBundle\Entity\Keyword $keyword = null) + { + $this->keyword = $keyword; + + return $this; + } + + /** + * Get keyword + * + * @return \Rapsys\BlogBundle\Entity\Keyword + */ + public function getKeyword() + { + return $this->keyword; + } + + /** + * Set language + * + * @param \Rapsys\BlogBundle\Entity\Language $language + * + * @return KeywordTranslation + */ + 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; + } + /** + * @var string + */ + private $slug; + + + /** + * Set slug + * + * @param string $slug + * + * @return KeywordTranslation + */ + public function setSlug($slug) + { + $this->slug = $slug; + + return $this; + } + + /** + * Get slug + * + * @return string + */ + public function getSlug() + { + return $this->slug; + } + /** + * @var string + */ + private $description; + + + /** + * Set description + * + * @param string $description + * + * @return KeywordTranslation + */ + public function setDescription($description) + { + $this->description = $description; + + return $this; + } + + /** + * Get description + * + * @return string + */ + public function getDescription() + { + return $this->description; + } +} diff --git a/Entity/Language.php b/Entity/Language.php new file mode 100644 index 0000000..cfb94c4 --- /dev/null +++ b/Entity/Language.php @@ -0,0 +1,361 @@ +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 new file mode 100644 index 0000000..021242d --- /dev/null +++ b/Entity/LanguageTranslation.php @@ -0,0 +1,213 @@ +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 new file mode 100644 index 0000000..3e240e5 --- /dev/null +++ b/Entity/Site.php @@ -0,0 +1,212 @@ +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 new file mode 100644 index 0000000..caf2d99 --- /dev/null +++ b/Entity/SiteTranslation.php @@ -0,0 +1,242 @@ +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; + } +} -- 2.41.1