First commit

This commit is contained in:
Marc Ducobu
2018-04-06 17:09:51 +02:00
commit c28c2bf119
27 changed files with 1434 additions and 0 deletions

45
Entity/PersonDocument.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
namespace Chill\DocStoreBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Chill\MainBundle\Entity\HasCenterInterface;
use Chill\MainBundle\Entity\HasScopeInterface;
use Chill\PersonBundle\Entity\Person;
/**
* @ORM\Entity()
*/
class PersonDocument extends Document implements HasCenterInterface, HasScopeInterface
{
/**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
* @var Person
*/
private $person;
/**
* Get person
*
* @return \Chill\MainBundle\Entity\Person
*/
public function getPerson()
{
return $this->person;
}
public function setPerson($person): self
{
$this->person = $person;
return $this;
}
public function getCenter()
{
return $this->getPerson()->getCenter();
}
}