adding a scope/circle to events

ref #1
This commit is contained in:
2016-03-22 12:36:11 +01:00
parent d7fc04cdaa
commit e66a855c0a
3 changed files with 45 additions and 0 deletions

View File

@@ -34,6 +34,12 @@ class Event
*/
private $type;
/**
*
* @var \Chill\MainBundle\Entity\Scope
*/
private $circle;
/**
* @var \Doctrine\Common\Collections\Collection
*/
@@ -141,7 +147,38 @@ class Event
{
return $this->center;
}
/**
*
* @return \Chill\MainBundle\Entity\Scope
*/
public function getCircle()
{
return $this->circle;
}
/**
*
* @param \Chill\MainBundle\Entity\Scope $circle
* @return \Chill\EventBundle\Entity\Event
*/
public function setCircle(\Chill\MainBundle\Entity\Scope $circle)
{
$this->circle = $circle;
return $this;
}
/**
*
* @deprecated
* @return \Chill\MainBundle\Entity\Scope
*/
public function getScope()
{
return $this->getCircle();
}
/**
* Add participation
*