3 namespace Rapsys\BlogBundle\Entity
;
26 * @var \Doctrine\Common\Collections\Collection
28 private $article_translations;
31 * @var \Rapsys\BlogBundle\Entity\Site
36 * @var \Rapsys\BlogBundle\Entity\Author
41 * @var \Doctrine\Common\Collections\Collection
48 public function __construct()
50 $this->article_translations
= new \Doctrine\Common\Collections\
ArrayCollection();
51 $this->keywords
= new \Doctrine\Common\Collections\
ArrayCollection();
59 public function getId()
67 * @param \DateTime $created
71 public function setCreated($created)
73 $this->created
= $created;
83 public function getCreated()
85 return $this->created
;
91 * @param \DateTime $updated
95 public function setUpdated($updated)
97 $this->updated
= $updated;
107 public function getUpdated()
109 return $this->updated
;
113 * Add articleTranslation
115 * @param \Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation
119 public function addArticleTranslation(\Rapsys\BlogBundle\Entity\ArticleTranslation
$articleTranslation)
121 $this->article_translations
[] = $articleTranslation;
127 * Remove articleTranslation
129 * @param \Rapsys\BlogBundle\Entity\ArticleTranslation $articleTranslation
131 public function removeArticleTranslation(\Rapsys\BlogBundle\Entity\ArticleTranslation
$articleTranslation)
133 $this->article_translations
->removeElement($articleTranslation);
137 * Get articleTranslations
139 * @return \Doctrine\Common\Collections\Collection
141 public function getArticleTranslations()
143 return $this->article_translations
;
149 * @param \Rapsys\BlogBundle\Entity\Site $site
153 public function setSite(\Rapsys\BlogBundle\Entity\Site
$site = null)
163 * @return \Rapsys\BlogBundle\Entity\Site
165 public function getSite()
173 * @param \Rapsys\BlogBundle\Entity\Author $author
177 public function setAuthor(\Rapsys\BlogBundle\Entity\Author
$author = null)
179 $this->author
= $author;
187 * @return \Rapsys\BlogBundle\Entity\Author
189 public function getAuthor()
191 return $this->author
;
197 * @param \Rapsys\BlogBundle\Entity\Keyword $keyword
201 public function addKeyword(\Rapsys\BlogBundle\Entity\Keyword
$keyword)
203 $this->keywords
[] = $keyword;
211 * @param \Rapsys\BlogBundle\Entity\Keyword $keyword
213 public function removeKeyword(\Rapsys\BlogBundle\Entity\Keyword
$keyword)
215 $this->keywords
->removeElement($keyword);
221 * @return \Doctrine\Common\Collections\Collection
223 public function getKeywords()
225 return $this->keywords
;
235 public function setId($id)