<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PromoSejourRepository")
*/
class PromoSejour
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Promotions", inversedBy="promoSejours")
*/
private $promotion;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Sejour", inversedBy="promoSejours")
* @ORM\JoinColumn(nullable=false)
*/
private $sejour;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateCreation;
public function getId(): ?int
{
return $this->id;
}
public function getPromotion(): ?Promotions
{
return $this->promotion;
}
public function setPromotion(?Promotions $promotion): self
{
$this->promotion = $promotion;
return $this;
}
public function getSejour(): ?Sejour
{
return $this->sejour;
}
public function setSejour(?Sejour $sejour): self
{
$this->sejour = $sejour;
return $this;
}
public function getDateCreation(): ?\DateTimeInterface
{
return $this->dateCreation;
}
public function setDateCreation(?\DateTimeInterface $dateCreation): self
{
$this->dateCreation = $dateCreation;
return $this;
}
}