src/Entity/Categorie.php line 49
<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/*** Categorie** @ORM\Table(name="categorie", indexes={* @ORM\Index(name="categorie_codice_idx",* columns={* "codice"* }),* @ORM\Index(name="categorie_nomeunivoco_idx",* columns={* "nome_univoco"* }),* @ORM\Index(name="categorie_ordine_idx",* columns={* "ordinamento"* }),* @ORM\Index(name="categorie_nome_idx",* columns={* "nome"* }),* @ORM\Index(name="categorie_col_prov_idx",* columns={* "colonna_provenienza"* }),* @ORM\Index(name="categorie_cod_or_idx",* columns={* "codice_originale"* }),* @ORM\Index(name="categorie_desc_idx",* columns={* "descrizione"* }),* @ORM\Index(name="categorie_attivo_idx",* columns={* "attivo"* })* })* @ORM\Entity(repositoryClass="App\Repository\CategorieRepository")*/class Categorie{/*** @var int** @ORM\Column(name="id", type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @var int** @ORM\Column(name="ordinamento", type="integer", nullable=true)*/private $ordinamento;/*** @var string** @ORM\Column(name="nome", type="string", length=255, nullable=true)*/private $nome;/*** @var string** @ORM\Column(name="colonna_provenienza", type="string", length=255, nullable=true)*/private $colonnaProvenienza;/*** @var string** @ORM\Column(name="codice", type="string", length=255, nullable=true)*/private $codice;/*** @var string** @ORM\Column(name="codice_originale", type="string", length=255, nullable=true)*/private $codiceOriginale;/*** @var string** @ORM\Column(name="descrizione", type="string", length=255, nullable=true)*/private $descrizione;/*** @var string** @ORM\Column(name="title_seo", type="text", nullable=true)*/private $titleSeo = "";/*** @var string** @ORM\Column(name="nome_univoco", type="string", length=255, nullable=false)*/private $nomeUnivoco;/*** @var string** @ORM\Column(name="immagine", type="string", length=255, nullable=true)*/private $immagine;/*** @var bool** @ORM\Column(name="attivo", type="boolean")*/private $attivo;/*** @var bool** @ORM\Column(name="prezzo_su_richiesta", type="boolean", nullable=true)*/private $prezzoSuRichiesta;/*** @var \DateTime** @ORM\Column(name="data_modifica", type="datetime")*/private $dataModifica;/*** @var \DateTime** @ORM\Column(name="data_creazione", type="datetime")*/private $dataCreazione;/*** @ORM\ManyToOne(targetEntity="User")* @ORM\JoinColumn(name="utente_id", referencedColumnName="id", onDelete="SET NULL")*/private $utente;/*** @ORM\OneToMany(targetEntity="CategorieInLingua", mappedBy="categoria")*/private $categorieInLingua;public function __construct(){$this->categorieInLingua = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNome(): ?string{return $this->nome;}public function setNome(?string $nome): static{$this->nome = $nome;return $this;}public function getColonnaProvenienza(): ?string{return $this->colonnaProvenienza;}public function setColonnaProvenienza(?string $colonnaProvenienza): static{$this->colonnaProvenienza = $colonnaProvenienza;return $this;}public function getCodice(): ?string{return $this->codice;}public function setCodice(?string $codice): static{$this->codice = $codice;return $this;}public function getCodiceOriginale(): ?string{return $this->codiceOriginale;}public function setCodiceOriginale(?string $codiceOriginale): static{$this->codiceOriginale = $codiceOriginale;return $this;}public function getDescrizione(): ?string{return $this->descrizione;}public function setDescrizione(?string $descrizione): static{$this->descrizione = $descrizione;return $this;}public function getTitleSeo(): ?string{return $this->titleSeo;}public function setTitleSeo(?string $titleSeo): static{$this->titleSeo = $titleSeo;return $this;}public function getNomeUnivoco(): ?string{return $this->nomeUnivoco;}public function setNomeUnivoco(string $nomeUnivoco): static{$this->nomeUnivoco = $nomeUnivoco;return $this;}public function getImmagine(): ?string{return $this->immagine;}public function setImmagine(?string $immagine): static{$this->immagine = $immagine;return $this;}public function getAttivo(): ?bool{return $this->attivo;}public function setAttivo(bool $attivo): static{$this->attivo = $attivo;return $this;}public function getPrezzoSuRichiesta(): ?bool{return $this->prezzoSuRichiesta;}public function setPrezzoSuRichiesta(?bool $prezzoSuRichiesta): static{$this->prezzoSuRichiesta = $prezzoSuRichiesta;return $this;}public function getDataModifica(): ?\DateTimeInterface{return $this->dataModifica;}public function setDataModifica(\DateTimeInterface $dataModifica): static{$this->dataModifica = $dataModifica;return $this;}public function getDataCreazione(): ?\DateTimeInterface{return $this->dataCreazione;}public function setDataCreazione(\DateTimeInterface $dataCreazione): static{$this->dataCreazione = $dataCreazione;return $this;}public function getUtente(): ?User{return $this->utente;}public function setUtente(?User $utente): static{$this->utente = $utente;return $this;}/*** @return Collection<int, CategorieInLingua>*/public function getCategorieInLingua(): Collection{return $this->categorieInLingua;}public function addCategorieInLingua(CategorieInLingua $categorieInLingua): static{if (!$this->categorieInLingua->contains($categorieInLingua)) {$this->categorieInLingua->add($categorieInLingua);$categorieInLingua->setCategoria($this);}return $this;}public function removeCategorieInLingua(CategorieInLingua $categorieInLingua): static{if ($this->categorieInLingua->removeElement($categorieInLingua)) {// set the owning side to null (unless already changed)if ($categorieInLingua->getCategoria() === $this) {$categorieInLingua->setCategoria(null);}}return $this;}public function getOrdinamento(): ?int{return $this->ordinamento;}public function setOrdinamento(?int $ordinamento): static{$this->ordinamento = $ordinamento;return $this;}public function isAttivo(): ?bool{return $this->attivo;}public function isPrezzoSuRichiesta(): ?bool{return $this->prezzoSuRichiesta;}}