Add Origin Entity in Accompanying Period package

This commit is contained in:
2021-03-29 11:24:57 +02:00
parent ba31927dc3
commit acff64c16f
4 changed files with 214 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
namespace Chill\PersonBundle\Entity;
use Chill\PersonBundle\Entity\AccompanyingPeriod\Origin;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
@@ -93,6 +94,15 @@ class AccompanyingPeriod
*/
private $user;
/**
* @var Origin
*
* @ORM\ManyToOne(
* targetEntity="Chill\PersonBundle\Entity\AccompanyingPeriod\Origin")
* @ORM\JoinColumn(nullable=true)
*/
private $origin;
/**
* AccompanyingPeriod constructor.
@@ -355,5 +365,15 @@ class AccompanyingPeriod
return $this;
}
public function getOrigin(): Origin
{
return $this->origin;
}
public function setOrigin($origin): AccompanyingPeriod
{
$this->origin = $origin;
return $this;
}
}