Made forum posting possible.
It has some limitations, though, as ForumTopic.last_post and ForumTopicGroup.last_post is not updated automagically...
This commit is contained in:
@@ -271,4 +271,37 @@ class ForumTopic
|
||||
{
|
||||
return $this->posts;
|
||||
}
|
||||
/**
|
||||
* @var KekRozsak\FrontBundle\Entity\ForumPost
|
||||
*/
|
||||
private $lastPost;
|
||||
|
||||
|
||||
/**
|
||||
* Set lastPost
|
||||
*
|
||||
* @param KekRozsak\FrontBundle\Entity\ForumPost $lastPost
|
||||
* @return ForumTopic
|
||||
*/
|
||||
public function setLastPost(\KekRozsak\FrontBundle\Entity\ForumPost $lastPost = null)
|
||||
{
|
||||
$this->lastPost = $lastPost;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastPost
|
||||
*
|
||||
* @return KekRozsak\FrontBundle\Entity\ForumPost
|
||||
*/
|
||||
public function getLastPost()
|
||||
{
|
||||
return $this->lastPost;
|
||||
}
|
||||
/**
|
||||
* @var KekRozsak\FrontBundle\Entity\ForumPost
|
||||
*/
|
||||
private $last_post;
|
||||
|
||||
|
||||
}
|
@@ -259,4 +259,37 @@ class ForumTopicGroup
|
||||
{
|
||||
return $this->topics;
|
||||
}
|
||||
/**
|
||||
* @var KekRozsak\FrontBundle\Entity\ForumPost
|
||||
*/
|
||||
private $lastPost;
|
||||
|
||||
|
||||
/**
|
||||
* Set lastPost
|
||||
*
|
||||
* @param KekRozsak\FrontBundle\Entity\ForumPost $lastPost
|
||||
* @return ForumTopicGroup
|
||||
*/
|
||||
public function setLastPost(\KekRozsak\FrontBundle\Entity\ForumPost $lastPost = null)
|
||||
{
|
||||
$this->lastPost = $lastPost;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastPost
|
||||
*
|
||||
* @return KekRozsak\FrontBundle\Entity\ForumPost
|
||||
*/
|
||||
public function getLastPost()
|
||||
{
|
||||
return $this->lastPost;
|
||||
}
|
||||
/**
|
||||
* @var KekRozsak\FrontBundle\Entity\ForumPost
|
||||
*/
|
||||
private $last_post;
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user