src/Entity/AttributGroupeLiaison.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AttributGroupeLiaisonRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAttributGroupeLiaisonRepository::class)]
  6. #[ORM\UniqueConstraint(name'unique_groupe_contact'columns: ['attribut_groupe_id''contact_type_id'])]
  7. #[ORM\UniqueConstraint(name'unique_groupe_objet'columns: ['attribut_groupe_id''objet_type_id'])]
  8. class AttributGroupeLiaison
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'attributGroupeLiaisons')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?VariablesGroup $attributGroupe null;
  17.     #[ORM\ManyToOne(inversedBy'attributGroupeLiaisons')]
  18.     #[ORM\JoinColumn(nullabletrue)]
  19.     private ?ContactType $contactType null;
  20.     #[ORM\ManyToOne(inversedBy'attributGroupeLiaisons')]
  21.     #[ORM\JoinColumn(nullabletrue)]
  22.     private ?ObjetType $objetType null;
  23.     #[ORM\Column(type'integer'options: ['default' => 1])]
  24.     private int $colonne 1;
  25.     #[ORM\Column(type'integer'options: ['default' => 10])]
  26.     private int $ordre 10;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getAttributGroupe(): ?VariablesGroup
  32.     {
  33.         return $this->attributGroupe;
  34.     }
  35.     public function setAttributGroupe(?VariablesGroup $attributGroupe): self
  36.     {
  37.         $this->attributGroupe $attributGroupe;
  38.         return $this;
  39.     }
  40.     public function getContactType(): ?ContactType
  41.     {
  42.         return $this->contactType;
  43.     }
  44.     public function setContactType(?ContactType $contactType): self
  45.     {
  46.         $this->contactType $contactType;
  47.         return $this;
  48.     }
  49.     public function getObjetType(): ?ObjetType
  50.     {
  51.         return $this->objetType;
  52.     }
  53.     public function setObjetType(?ObjetType $objetType): self
  54.     {
  55.         $this->objetType $objetType;
  56.         return $this;
  57.     }
  58.     public function getColonne(): int
  59.     {
  60.         return $this->colonne;
  61.     }
  62.     public function setColonne(int $colonne): self
  63.     {
  64.         $this->colonne $colonne;
  65.         return $this;
  66.     }
  67.     public function getOrdre(): int
  68.     {
  69.         return $this->ordre;
  70.     }
  71.     public function setOrdre(int $ordre): self
  72.     {
  73.         $this->ordre $ordre;
  74.         return $this;
  75.     }
  76. }