Files
chill-bundles/src/Bundle/ChillDocStoreBundle/Entity/AccompanyingCourseDocument.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;
}
}