src/Application/Internit/GaleriaEmpreendimentoBundle/Entity/GaleriaEmpreendimento.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Application\Internit\GaleriaEmpreendimentoBundle\Entity;
  3. use App\Application\Internit\GaleriaEmpreendimentoBundle\Repository\GaleriaEmpreendimentoRepository;
  4. use App\Application\Internit\EmpreendimentoBundle\Entity\Empreendimento;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. use App\Entity\SonataMediaGallery;
  10. use App\Entity\SonataMediaMedia;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use DateTime;
  13. /** Info:  */
  14. #[ORM\Table(name'galeria_empreendimento')]
  15. #[ORM\Entity(repositoryClassGaleriaEmpreendimentoRepository::class)]
  16. #[UniqueEntity('id')]
  17. class GaleriaEmpreendimento
  18. {
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue]
  21.     #[ORM\Column(name'id'type'integer'uniquetruenullablefalse)]
  22.     private ?int $id null;
  23.     #[Assert\NotNull]
  24.     #[Assert\NotBlank]
  25.     #[ORM\Column(name'nome'type'string'uniquefalsenullablefalse)]
  26.     private string $nome;
  27.     #[ORM\ManyToOne(targetEntityEmpreendimento::class, inversedBy'galeriaEmpreendimentos')]
  28.     #[ORM\JoinColumn(name'empreendimento_id'referencedColumnName'id'onDelete'SET NULL')]
  29.     private Empreendimento|null $empreendimento null;
  30.     private mixed $multipleUpload;
  31.     #[ORM\ManyToOne(targetEntitySonataMediaGallery::class, cascade: ['persist'])]
  32.     private mixed $galeria;
  33.     public function __construct()
  34.     {
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getNome(): string
  41.     {
  42.         return $this->nome;
  43.     }
  44.     public function setNome(string $nome): void
  45.     {
  46.         $this->nome $nome;
  47.     }
  48.     public function getEmpreendimento(): ?Empreendimento
  49.     {
  50.         return $this->empreendimento;
  51.     }
  52.     public function setEmpreendimento(?Empreendimento $empreendimento): void
  53.     {
  54.         $this->empreendimento $empreendimento;
  55.     }
  56.     /**
  57.      * @return mixed
  58.      */
  59.     public function getMultipleUpload(): mixed
  60.     {
  61.         return $this->multipleUpload;
  62.     }
  63.     /**
  64.      * @param mixed $multipleUpload
  65.      */
  66.     public function setMultipleUpload(mixed $multipleUpload): void
  67.     {
  68.         $this->multipleUpload $multipleUpload;
  69.     }
  70.     public function getGaleria(): mixed
  71.     {
  72.         return $this->galeria;
  73.     }
  74.     public function setGaleria(mixed $galeria): void
  75.     {
  76.         $this->galeria $galeria;
  77.     }
  78. }