add a new moderator field on events

This commit is contained in:
2019-01-15 16:01:04 +01:00
parent 7836ece3ee
commit ca6f836195
7 changed files with 73 additions and 1 deletions

View File

@@ -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;
}
}