3 namespace Rapsys\BlogBundle\Entity
;
31 * @var \Doctrine\Common\Collections\Collection
36 * @var \Doctrine\Common\Collections\Collection
38 private $site_translations;
43 public function __construct()
45 $this->articles
= new \Doctrine\Common\Collections\
ArrayCollection();
46 $this->site_translations
= new \Doctrine\Common\Collections\
ArrayCollection();
54 public function getId()
62 * @param string $domain
66 public function setDomain($domain)
68 $this->domain
= $domain;
78 public function getDomain()
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 siteTranslation
168 * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation
172 public function addSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation
$siteTranslation)
174 $this->site_translations
[] = $siteTranslation;
180 * Remove siteTranslation
182 * @param \Rapsys\BlogBundle\Entity\SiteTranslation $siteTranslation
184 public function removeSiteTranslation(\Rapsys\BlogBundle\Entity\SiteTranslation
$siteTranslation)
186 $this->site_translations
->removeElement($siteTranslation);
190 * Get siteTranslations
192 * @return \Doctrine\Common\Collections\Collection
194 public function getSiteTranslations()
196 return $this->site_translations
;
206 public function setId($id)