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