src/Entity/Profil/TwiceProfileTranslation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Profil;
  3. use App\Repository\Profil\TwiceProfileTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TwiceProfileTranslationRepository::class)
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class TwiceProfileTranslation
  11. {
  12.     use ORMBehaviors\Translatable\Translation;
  13.     
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     protected $id;
  20.     
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=TwiceProfile::class, inversedBy="translations", cascade={"persist"})
  23.      */
  24.     protected $translatable;
  25.     
  26.     /**
  27.      * @var string
  28.      * @ORM\Column(type="string")
  29.      */
  30.     protected $locale;
  31.     /**
  32.      * @ORM\Column(type="text", nullable=true)
  33.      */
  34.     private $description;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $title;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getDescription(): ?string
  44.     {
  45.         return $this->description;
  46.     }
  47.     public function setDescription(?string $description): self
  48.     {
  49.         $this->description $description;
  50.         return $this;
  51.     }
  52.     public function getTitle(): ?string
  53.     {
  54.         return $this->title;
  55.     }
  56.     public function setTitle(?string $title): self
  57.     {
  58.         $this->title $title;
  59.         return $this;
  60.     }
  61. }