mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-21 14:14:58 +00:00
33 lines
702 B
PHP
33 lines
702 B
PHP
<?php
|
|
|
|
namespace Chill\DocStoreBundle\Entity;
|
|
|
|
use Chill\DocStoreBundle\Entity\Document;
|
|
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Entity()
|
|
* @ORM\Table("chill_doc.accompanyingcourse_document")
|
|
*/
|
|
class AccompanyingCourseDocument extends Document
|
|
{
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity=AccompanyingPeriod::class)
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
private ?AccompanyingPeriod $course = null;
|
|
|
|
public function getCourse(): ?AccompanyingPeriod
|
|
{
|
|
return $this->course;
|
|
}
|
|
|
|
public function setCourse(?AccompanyingPeriod $course): self
|
|
{
|
|
$this->course = $course;
|
|
|
|
return $this;
|
|
}
|
|
}
|