Added very basic forum functionality

This commit is contained in:
Polonkai Gergely
2012-07-03 14:56:28 +02:00
parent 0649408e60
commit 1af3a30c2a
10 changed files with 379 additions and 5 deletions

View File

@@ -200,4 +200,58 @@ class User implements UserInterface
{
return $this->password;
}
/**
* @var \Doctrine\Common\Collections\ArrayCollection
*/
private $articles;
/**
* @var \Doctrine\Common\Collections\ArrayCollection
*/
private $forum_posts;
/**
* Add articles
*
* @param KekRozsak\FrontBundle\Entity\Article $articles
* @return User
*/
public function addArticle(\KekRozsak\FrontBundle\Entity\Article $articles)
{
$this->articles[] = $articles;
return $this;
}
/**
* Get articles
*
* @return Doctrine\Common\Collections\Collection
*/
public function getArticles()
{
return $this->articles;
}
/**
* Add forum_posts
*
* @param KekRozsak\FrontBundle\Entity\ForumPost $forumPosts
* @return User
*/
public function addForumPost(\KekRozsak\FrontBundle\Entity\ForumPost $forumPosts)
{
$this->forum_posts[] = $forumPosts;
return $this;
}
/**
* Get forum_posts
*
* @return Doctrine\Common\Collections\Collection
*/
public function getForumPosts()
{
return $this->forum_posts;
}
}