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

@@ -240,4 +240,35 @@ class ForumTopic
{
return $this->topic_group;
}
/**
* @var \Doctrine\Common\Collections\ArrayCollection
*/
private $posts;
public function __construct()
{
$this->posts = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Add posts
*
* @param KekRozsak\FrontBundle\Entity\ForumPost $posts
* @return ForumTopic
*/
public function addForumPost(\KekRozsak\FrontBundle\Entity\ForumPost $posts)
{
$this->posts[] = $posts;
return $this;
}
/**
* Get posts
*
* @return Doctrine\Common\Collections\Collection
*/
public function getPosts()
{
return $this->posts;
}
}