src/Entity/CategoryTranslation.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CategoryTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCategoryTranslationRepository::class)]
  6. class CategoryTranslation
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'categoryTranslations')]
  13.     private ?Category $category null;
  14.     #[ORM\Column(length2nullabletrue)]
  15.     private ?string $locale null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $name null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $slug null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getCategory(): ?Category
  25.     {
  26.         return $this->category;
  27.     }
  28.     public function setCategory(?Category $category): self
  29.     {
  30.         $this->category $category;
  31.         return $this;
  32.     }
  33.     public function getLocale(): ?string
  34.     {
  35.         return $this->locale;
  36.     }
  37.     public function setLocale(?string $locale): self
  38.     {
  39.         $this->locale $locale;
  40.         return $this;
  41.     }
  42.     public function getName(): ?string
  43.     {
  44.         return $this->name;
  45.     }
  46.     public function setName(?string $name): self
  47.     {
  48.         $this->name $name;
  49.         return $this;
  50.     }
  51.     public function getSlug(): ?string
  52.     {
  53.         return $this->slug;
  54.     }
  55.     public function setSlug(?string $slug): self
  56.     {
  57.         $this->slug $slug;
  58.         return $this;
  59.     }
  60. }