mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add a new moderator field on events
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Chill\EventBundle\Entity;
|
||||
|
||||
use Chill\MainBundle\Entity\HasCenterInterface;
|
||||
use Chill\MainBundle\Entity\HasScopeInterface;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Event
|
||||
@@ -47,7 +48,12 @@ class Event implements HasCenterInterface, HasScopeInterface
|
||||
* @var \Doctrine\Common\Collections\Collection
|
||||
*/
|
||||
private $participations;
|
||||
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $moderator;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@@ -215,4 +221,22 @@ class Event implements HasCenterInterface, HasScopeInterface
|
||||
{
|
||||
return $this->participations;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getModerator()
|
||||
{
|
||||
return $this->moderator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $moderator
|
||||
* @return Event
|
||||
*/
|
||||
public function setModerator($moderator)
|
||||
{
|
||||
$this->moderator = $moderator;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user