src/Entity/Tag.php line 14
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\TagTranslation;use App\Repository\TagRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Gedmo\Translatable\Translatable;#[Gedmo\TranslationEntity(class: self::TRANSLATION_ENTITY)]#[ORM\Entity(repositoryClass: TagRepository::class)]class Tag implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = TagTranslation::class;public function __toString(): string{return $this->title ?? '';}#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string',nullable: true)]#[Gedmo\Translatable]private ?string $title = null;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;}}