src/Entity/HomeBlocTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\Service\ImplantsCapillairRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  7. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  8. #[ORM\Entity(repositoryClassHomeBlocRepository::class)]
  9. class HomeBlocTranslation implements TranslationInterface
  10. {
  11.   use TranslationTrait;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  17.     private ?string $bloc1 null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getBloc1(): ?string
  23.     {
  24.         return $this->bloc1;
  25.     }
  26.     public function setBloc1(?string $bloc1): static
  27.     {
  28.         $this->bloc1 $bloc1;
  29.         return $this;
  30.     }
  31. }