src/Entity/TelechargementsCategorie.php line 13
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* TelechargementsCategorie
*
* @ORM\Table(name="telechargements_categorie", indexes={@ORM\Index(name="id_categorie_parente", columns={"id_categorie_parente"})})
* @ORM\Entity(repositoryClass="App\Repository\TelechargementsCategorieRepository")
*/
class TelechargementsCategorie
{
/**
* @var int
*
* @ORM\Column(name="id_categorie", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $idCategorie;
/**
* @var string
*
* @ORM\Column(name="nom_categorie", type="text", length=65535, nullable=false)
*/
private $nomCategorie;
/**
* @var string
*
* @ORM\Column(name="nom_entreprise", type="string", length=255, nullable=false)
*/
private $nomEntreprise;
/**
* @var int
*
* @ORM\Column(name="ordre_categorie", type="integer", nullable=false)
*/
private $ordreCategorie;
/**
* @var \TelechargementsCategorie
*
* @ORM\ManyToOne(targetEntity="TelechargementsCategorie")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_categorie_parente", referencedColumnName="id_categorie")
* })
*/
private $idCategorieParente;
public function getIdCategorie(): ?int
{
return $this->idCategorie;
}
public function getNomCategorie(): ?string
{
return $this->nomCategorie;
}
public function setNomCategorie(string $nomCategorie): self
{
$this->nomCategorie = $nomCategorie;
return $this;
}
public function getNomEntreprise(): ?string
{
return $this->nomEntreprise;
}
public function setNomEntreprise(string $nomEntreprise): self
{
$this->nomEntreprise = $nomEntreprise;
return $this;
}
public function getOrdreCategorie(): ?int
{
return $this->ordreCategorie;
}
public function setOrdreCategorie(int $ordreCategorie): self
{
$this->ordreCategorie = $ordreCategorie;
return $this;
}
public function getIdCategorieParente(): ?self
{
return $this->idCategorieParente;
}
public function setIdCategorieParente(?self $idCategorieParente): self
{
$this->idCategorieParente = $idCategorieParente;
return $this;
}
public function __toString()
{
return $this->nomCategorie;
}
}