<?php
namespace App\Entity;
use App\Repository\ChoraleMembresRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ChoraleMembresRepository::class)]
class ChoraleMembres
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'choraleMembres')]
#[ORM\JoinColumn(nullable: false)]
private ?Chorales $chorale = null;
#[ORM\ManyToOne(inversedBy: 'choraleMembres')]
#[ORM\JoinColumn(nullable: false)]
private ?Chretiens $chretien = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $poste = null;
#[ORM\Column]
private ?bool $statut = null;
public function getId(): ?int
{
return $this->id;
}
public function getChorale(): ?Chorales
{
return $this->chorale;
}
public function setChorale(?Chorales $chorale): static
{
$this->chorale = $chorale;
return $this;
}
public function getChretien(): ?Chretiens
{
return $this->chretien;
}
public function setChretien(?Chretiens $chretien): static
{
$this->chretien = $chretien;
return $this;
}
public function getPoste(): ?string
{
return $this->poste;
}
public function setPoste(?string $poste): static
{
$this->poste = $poste;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(bool $statut): static
{
$this->statut = $statut;
return $this;
}
}