src/Entity/AssociazioneSpedizioniClienti.php line 21

  1. <?php
  2. namespace App\Entity;
  3. use App\Model\Colonna;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * AssociazioneSpedizioniClienti
  7.  *
  8.  * @ORM\Table(name="associazione_spedizioni_clienti", indexes={
  9.  *     @ORM\Index(name="associazione_sped_cli_idx",
  10.  *     columns={
  11.  *      "azienda_id",
  12.  *      "spedizione_id",
  13.  *      "consegna_id"
  14.  *     }
  15.  *     )})
  16.  * @ORM\Entity(repositoryClass="App\Repository\AssociazioneSpedizioniClientiRepository")
  17.  */
  18. class AssociazioneSpedizioniClienti
  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="User")
  30.      * @ORM\JoinColumn(name="azienda_id", referencedColumnName="id", onDelete="SET NULL")
  31.      *
  32.      */
  33.     private $azienda;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="Spedizione")
  36.      * @ORM\JoinColumn(name="spedizione_id", referencedColumnName="id", onDelete="SET NULL")
  37.      */
  38.     private $spedizione;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="Consegna")
  41.      * @ORM\JoinColumn(name="consegna_id", referencedColumnName="id", onDelete="SET NULL")
  42.      */
  43.     private $consegna;
  44.     /**
  45.      * @var bool
  46.      *
  47.      * @ORM\Column(name="primaria", type="boolean")
  48.      */
  49.     private $primaria;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function setPrimaria(bool $primaria): static
  55.     {
  56.         $this->primaria $primaria;
  57.         return $this;
  58.     }
  59.     public function getPrimaria(): ?bool
  60.     {
  61.         return $this->primaria;
  62.     }
  63.     public function setAzienda(?User $azienda): static
  64.     {
  65.         $this->azienda $azienda;
  66.         return $this;
  67.     }
  68.     public function getAzienda(): ?User
  69.     {
  70.         return $this->azienda;
  71.     }
  72.     public function setSpedizione(?Spedizione $spedizione): static
  73.     {
  74.         $this->spedizione $spedizione;
  75.         return $this;
  76.     }
  77.     public function getSpedizione(): ?Spedizione
  78.     {
  79.         return $this->spedizione;
  80.     }
  81.     public function setConsegna(?Consegna $consegna): static
  82.     {
  83.         $this->consegna $consegna;
  84.         return $this;
  85.     }
  86.     public function getConsegna(): ?Consegna
  87.     {
  88.         return $this->consegna;
  89.     }
  90.     public function isPrimaria(): ?bool
  91.     {
  92.         return $this->primaria;
  93.     }
  94. }