src/Entity/Profil/BigFiveProfileTranslation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Profil;
  3. use App\Repository\Profil\BigFiveProfileTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  6. /**
  7.  * @ORM\Entity(repositoryClass=BigFiveProfileTranslationRepository::class)
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class BigFiveProfileTranslation
  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=BigFiveProfile::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="string", length=255, nullable=true)
  33.      */
  34.     private $title;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getTitle(): ?string
  40.     {
  41.         return $this->title;
  42.     }
  43.     public function setTitle(?string $title): self
  44.     {
  45.         $this->title $title;
  46.         return $this;
  47.     }
  48. }