<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="fs_reservation_request_type_translation")
* @ORM\Entity(repositoryClass="App\Repository\ReservationRequestTypeRepository")
*/
class ReservationRequestTypeTranslation
{
/**
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="value", type="string")
*/
protected $value;
// MANY TO ONE
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ReservationRequestType", inversedBy="translations")
* @ORM\JoinColumn(name="request_type_id", referencedColumnName="id")
*/
private $requestType;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Language", inversedBy="reservationRequestTypes")
* @ORM\JoinColumn(name="language_id", referencedColumnName="id")
*/
private $language;
//
public function getId(): ?string
{
return $this->id;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getRequestType(): ?ReservationRequestType
{
return $this->requestType;
}
public function setRequestType(?ReservationRequestType $requestType): self
{
$this->requestType = $requestType;
return $this;
}
public function getLanguage(): ?Language
{
return $this->language;
}
public function setLanguage(?Language $language): self
{
$this->language = $language;
return $this;
}
}