<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="fs_boat_type_translation")
* @ORM\Entity(repositoryClass="App\Repository\BoatTypeRepository")
*/
class BoatTypeTranslation
{
/**
* @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\BoatType", inversedBy="translations")
* @ORM\JoinColumn(name="type_id", referencedColumnName="id")
*/
private $type;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Language", inversedBy="boatTypes")
* @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 getType(): ?BoatType
{
return $this->type;
}
public function setType(?BoatType $type): self
{
$this->type = $type;
return $this;
}
public function getLanguage(): ?Language
{
return $this->language;
}
public function setLanguage(?Language $language): self
{
$this->language = $language;
return $this;
}
}