3 namespace Rapsys\BlogBundle\Entity
;
26 * @var \Doctrine\Common\Collections\Collection
28 private $keyword_translations;
31 * @var \Doctrine\Common\Collections\Collection
38 public function __construct()
40 $this->keyword_translations
= new \Doctrine\Common\Collections\
ArrayCollection();
41 $this->articles
= new \Doctrine\Common\Collections\
ArrayCollection();
49 public function getId()
57 * @param \DateTime $created
61 public function setCreated($created)
63 $this->created
= $created;
73 public function getCreated()
75 return $this->created
;
81 * @param \DateTime $updated
85 public function setUpdated($updated)
87 $this->updated
= $updated;
97 public function getUpdated()
99 return $this->updated
;
103 * Add keywordTranslation
105 * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation
109 public function addKeywordTranslation(\Rapsys\BlogBundle\Entity\KeywordTranslation
$keywordTranslation)
111 $this->keyword_translations
[] = $keywordTranslation;
117 * Remove keywordTranslation
119 * @param \Rapsys\BlogBundle\Entity\KeywordTranslation $keywordTranslation
121 public function removeKeywordTranslation(\Rapsys\BlogBundle\Entity\KeywordTranslation
$keywordTranslation)
123 $this->keyword_translations
->removeElement($keywordTranslation);
127 * Get keywordTranslations
129 * @return \Doctrine\Common\Collections\Collection
131 public function getKeywordTranslations()
133 return $this->keyword_translations
;
139 * @param \Rapsys\BlogBundle\Entity\Article $article
143 public function addArticle(\Rapsys\BlogBundle\Entity\Article
$article)
145 $this->articles
[] = $article;
153 * @param \Rapsys\BlogBundle\Entity\Article $article
155 public function removeArticle(\Rapsys\BlogBundle\Entity\Article
$article)
157 $this->articles
->removeElement($article);
163 * @return \Doctrine\Common\Collections\Collection
165 public function getArticles()
167 return $this->articles
;
177 public function setId($id)