src/Entity/UserEntreprise.php line 9
<?phpnamespace App\Entity;use App\Repository\UserEntrepriseRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserEntrepriseRepository::class)]class UserEntreprise{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'userEntreprises')]private ?User $user = null;#[ORM\ManyToOne(inversedBy: 'userEntreprises')]private ?Entreprise $entreprise = null;#[ORM\Column(length: 50)]private ?string $role = null;#[ORM\Column]private ?bool $status = null;public function getId(): ?int{return $this->id;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): static{$this->user = $user;return $this;}public function getEntreprise(): ?Entreprise{return $this->entreprise;}public function setEntreprise(?Entreprise $entreprise): static{$this->entreprise = $entreprise;return $this;}public function getRole(): ?string{return $this->role;}public function setRole(string $role): static{$this->role = $role;return $this;}public function isStatus(): ?bool{return $this->status;}public function setStatus(bool $status): static{$this->status = $status;return $this;}}