src/Entity/Membre.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MembreRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMembreRepository::class)]
  6. class Membre
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'membress')]
  13.     private ?Projet $projet null;
  14.     #[ORM\ManyToOne(inversedBy'membres')]
  15.     private ?Chercheur $chercheur null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $role null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getProjet(): ?Projet
  23.     {
  24.         return $this->projet;
  25.     }
  26.     public function setProjet(?Projet $projet): self
  27.     {
  28.         $this->projet $projet;
  29.         return $this;
  30.     }
  31.     public function getChercheur(): ?Chercheur
  32.     {
  33.         return $this->chercheur;
  34.     }
  35.     public function setChercheur(?Chercheur $chercheur): self
  36.     {
  37.         $this->chercheur $chercheur;
  38.         return $this;
  39.     }
  40.     public function getRole(): ?string
  41.     {
  42.         return $this->role;
  43.     }
  44.     public function setRole(?string $role): self
  45.     {
  46.         $this->role $role;
  47.         return $this;
  48.     }
  49. }