<?php
namespace App\Entity\Profil;
use App\Repository\Profil\BigFiveProfileTranslationRepository;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Model as ORMBehaviors;
/**
* @ORM\Entity(repositoryClass=BigFiveProfileTranslationRepository::class)
* @ORM\HasLifecycleCallbacks()
*/
class BigFiveProfileTranslation
{
use ORMBehaviors\Translatable\Translation;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity=BigFiveProfile::class, inversedBy="translations", cascade={"persist"})
*/
protected $translatable;
/**
* @var string
* @ORM\Column(type="string")
*/
protected $locale;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
}