3 namespace Rapsys\BlogBundle\Entity
;
31 * @var \Doctrine\Common\Collections\Collection
36 * @var \Doctrine\Common\Collections\Collection
38 private $author_translations;
43 public function __construct()
45 $this->articles
= new \Doctrine\Common\Collections\
ArrayCollection();
46 $this->author_translations
= new \Doctrine\Common\Collections\
ArrayCollection();
54 public function getId()
66 public function setName($name)
78 public function getName()
86 * @param \DateTime $created
90 public function setCreated($created)
92 $this->created
= $created;
102 public function getCreated()
104 return $this->created
;
110 * @param \DateTime $updated
114 public function setUpdated($updated)
116 $this->updated
= $updated;
126 public function getUpdated()
128 return $this->updated
;
134 * @param \Rapsys\BlogBundle\Entity\Article $article
138 public function addArticle(\Rapsys\BlogBundle\Entity\Article
$article)
140 $this->articles
[] = $article;
148 * @param \Rapsys\BlogBundle\Entity\Article $article
150 public function removeArticle(\Rapsys\BlogBundle\Entity\Article
$article)
152 $this->articles
->removeElement($article);
158 * @return \Doctrine\Common\Collections\Collection
160 public function getArticles()
162 return $this->articles
;
166 * Add authorTranslation
168 * @param \Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation
172 public function addAuthorTranslation(\Rapsys\BlogBundle\Entity\AuthorTranslation
$authorTranslation)
174 $this->author_translations
[] = $authorTranslation;
180 * Remove authorTranslation
182 * @param \Rapsys\BlogBundle\Entity\AuthorTranslation $authorTranslation
184 public function removeAuthorTranslation(\Rapsys\BlogBundle\Entity\AuthorTranslation
$authorTranslation)
186 $this->author_translations
->removeElement($authorTranslation);
190 * Get authorTranslations
192 * @return \Doctrine\Common\Collections\Collection
194 public function getAuthorTranslations()
196 return $this->author_translations
;
206 public function setId($id)
221 * @param string $slug
225 public function setSlug($slug)
237 public function getSlug()