src/Entity/Generated.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GeneratedRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassGeneratedRepository::class)]
  7. class Generated
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::ARRAY, nullabletrue)]
  14.     private array $fields = [];
  15.     public function getId(): ?int
  16.     {
  17.         return $this->id;
  18.     }
  19.     public function getFields(): array
  20.     {
  21.         return $this->fields;
  22.     }
  23.     public function setFields(?array $fields): self
  24.     {
  25.         $this->fields $fields;
  26.         return $this;
  27.     }
  28. }