src/Entity/AssociazioneAttributi.php line 21

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * AssociazioneAttributi
  7.  *
  8.  * @ORM\Table(name="associazione_attributi", indexes={
  9.  *     @ORM\Index(name="associazione_att_idx",
  10.  *     columns={
  11.  *      "articolo_id",
  12.  *      "mappa_categoria_articolo_id",
  13.  *      "attributo_id"
  14.  *     }
  15.  *     )})
  16.  * @ORM\Entity(repositoryClass="App\Repository\AssociazioneAttributiRepository")
  17.  */
  18. class AssociazioneAttributi
  19. {
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="id", type="integer")
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      */
  27.     private $id;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="Articoli")
  30.      * @ORM\JoinColumn(name="articolo_id", referencedColumnName="id", onDelete="SET NULL")
  31.      */
  32.     private $articolo;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity="MappaCategorieArticoli", inversedBy="attributi", cascade={"persist"})
  35.      */
  36.     private $mappaCategoriaArticolo;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="Attributi")
  39.      * @ORM\JoinColumn(name="attributo_id", referencedColumnName="id", onDelete="SET NULL")
  40.      */
  41.     private $attributo;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity="App\Entity\Lingue")
  44.      * @ORM\JoinColumn(name="lingua_locale", referencedColumnName="locale", onDelete="SET NULL")
  45.      */
  46.     private $lingua;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="valore", type="string", length=255)
  51.      */
  52.     private $valore;
  53.     /**
  54.      * @var \DateTime
  55.      *
  56.      * @ORM\Column(name="data_creazione", type="datetime", nullable=true)
  57.      */
  58.     private $dataCreazione;
  59.     /**
  60.      * @var \DateTime
  61.      *
  62.      * @ORM\Column(name="data_modifica", type="datetime", nullable=true)
  63.      */
  64.     private $dataModifica;
  65.     /**
  66.      * @ORM\ManyToOne(targetEntity="User")
  67.      * @ORM\JoinColumn(name="utente_modifica_id", referencedColumnName="id", onDelete="SET NULL")
  68.      */
  69.     private $utenteModifica;
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function setValore(string $valore): static
  75.     {
  76.         $this->valore = $valore;
  77.         return $this;
  78.     }
  79.     public function getValore(): ?string
  80.     {
  81.         return $this->valore;
  82.     }
  83.     public function setDataCreazione(?\DateTimeInterface $dataCreazione): static
  84.     {
  85.         $this->dataCreazione = $dataCreazione;
  86.         return $this;
  87.     }
  88.     public function getDataCreazione(): ?\DateTimeInterface
  89.     {
  90.         return $this->dataCreazione;
  91.     }
  92.     public function setDataModifica(?\DateTimeInterface $dataModifica): static
  93.     {
  94.         $this->dataModifica = $dataModifica;
  95.         return $this;
  96.     }
  97.     public function getDataModifica(): ?\DateTimeInterface
  98.     {
  99.         return $this->dataModifica;
  100.     }
  101.     public function setArticolo(?Articoli $articolo): static
  102.     {
  103.         $this->articolo = $articolo;
  104.         return $this;
  105.     }
  106.     public function getArticolo(): ?Articoli
  107.     {
  108.         return $this->articolo;
  109.     }
  110.     public function setMappaCategoriaArticolo(?MappaCategorieArticoli $mappaCategoriaArticolo): static
  111.     {
  112.         $this->mappaCategoriaArticolo = $mappaCategoriaArticolo;
  113.         return $this;
  114.     }
  115.     public function getMappaCategoriaArticolo(): ?MappaCategorieArticoli
  116.     {
  117.         return $this->mappaCategoriaArticolo;
  118.     }
  119.     public function setAttributo(?Attributi $attributo): static
  120.     {
  121.         $this->attributo = $attributo;
  122.         return $this;
  123.     }
  124.     public function getAttributo(): ?Attributi
  125.     {
  126.         return $this->attributo;
  127.     }
  128.     public function setUtenteModifica(?User $utenteModifica): static
  129.     {
  130.         $this->utenteModifica = $utenteModifica;
  131.         return $this;
  132.     }
  133.     public function getUtenteModifica(): ?User
  134.     {
  135.         return $this->utenteModifica;
  136.     }
  137.     public function setLingua(?Lingue $lingua): static
  138.     {
  139.         $this->lingua = $lingua;
  140.         return $this;
  141.     }
  142.     public function getLingua(): ?Lingue
  143.     {
  144.         return $this->lingua;
  145.     }
  146. }