src/Entity/Chretiens.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChretiensRepository;
  4. use App\Traits\TimeStampTraits;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassChretiensRepository::class)]
  10. #[ORM\HasLifecycleCallbacks]
  11. class Chretiens
  12. {
  13.     use TimeStampTraits;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(length250)]
  19.     private ?string $nom null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $prenom null;
  22.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  23.     private ?\DateTimeInterface $dateNaissance null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $lieuDeNaissance null;
  26.     #[ORM\Column(length10)]
  27.     private ?string $sexe null;
  28.     #[ORM\Column(length20nullabletrue)]
  29.     private ?string $telephone null;
  30.     #[ORM\Column(length20nullabletrue)]
  31.     private ?string $telephoneSecondaire null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $email null;
  34.     #[ORM\Column]
  35.     private ?bool $isBaptise null;
  36.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  37.     private ?string $commentaire null;
  38.     #[ORM\OneToMany(mappedBy'chretien'targetEntityChretienFonctions::class, orphanRemovaltrue)]
  39.     private Collection $chretienFonctions;
  40.     #[ORM\OneToMany(mappedBy'chretien'targetEntityChoraleMembres::class, orphanRemovaltrue)]
  41.     private Collection $choraleMembres;
  42.     #[ORM\Column(length255)]
  43.     private ?string $adresse null;
  44.     #[ORM\OneToMany(mappedBy'chretien'targetEntityFamilleMembre::class, orphanRemovaltrue)]
  45.     private Collection $familleMembres;
  46.     #[ORM\OneToMany(mappedBy'chretien'targetEntityEntrees::class)]
  47.     private Collection $entrees;
  48.     #[ORM\OneToMany(mappedBy'chretien'targetEntityConfigurationDonReconnaissance::class)]
  49.     private Collection $configurationDonReconnaissances;
  50.     #[ORM\OneToMany(mappedBy'chretien'targetEntityCaisseCampAdolescents::class, orphanRemovaltrue)]
  51.     private Collection $caisseCampAdolescents;
  52.     #[ORM\ManyToOne(inversedBy'chretiens')]
  53.     #[ORM\JoinColumn(nullablefalse)]
  54.     private ?Annexe $annexe null;
  55.     public function __construct()
  56.     {
  57.         $this->chretienFonctions = new ArrayCollection();
  58.         $this->choraleMembres = new ArrayCollection();
  59.         $this->familleMembres = new ArrayCollection();
  60.         $this->entrees = new ArrayCollection();
  61.         $this->configurationDonReconnaissances = new ArrayCollection();
  62.         $this->caisseCampAdolescents = new ArrayCollection();
  63.     }
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getNom(): ?string
  69.     {
  70.         return $this->nom;
  71.     }
  72.     public function setNom(string $nom): static
  73.     {
  74.         $this->nom $nom;
  75.         return $this;
  76.     }
  77.     public function getPrenom(): ?string
  78.     {
  79.         return $this->prenom;
  80.     }
  81.     public function setPrenom(?string $prenom): static
  82.     {
  83.         $this->prenom $prenom;
  84.         return $this;
  85.     }
  86.     public function getDateNaissance(): ?\DateTimeInterface
  87.     {
  88.         return $this->dateNaissance;
  89.     }
  90.     public function setDateNaissance(?\DateTimeInterface $dateNaissance): static
  91.     {
  92.         $this->dateNaissance $dateNaissance;
  93.         return $this;
  94.     }
  95.     public function getlieuDeNaissance(): ?string
  96.     {
  97.         return $this->lieuDeNaissance;
  98.     }
  99.     public function setlieuDeNaissance(?string $lieuDeNaissance): static
  100.     {
  101.         $this->lieuDeNaissance $lieuDeNaissance;
  102.         return $this;
  103.     }
  104.     public function getSexe(): ?string
  105.     {
  106.         return $this->sexe;
  107.     }
  108.     public function setSexe(string $sexe): static
  109.     {
  110.         $this->sexe $sexe;
  111.         return $this;
  112.     }
  113.     public function getTelephone(): ?string
  114.     {
  115.         return $this->telephone;
  116.     }
  117.     public function setTelephone(?string $telephone): static
  118.     {
  119.         $this->telephone $telephone;
  120.         return $this;
  121.     }
  122.     public function getTelephoneSecondaire(): ?string
  123.     {
  124.         return $this->telephoneSecondaire;
  125.     }
  126.     public function setTelephoneSecondaire(?string $telephoneSecondaire): static
  127.     {
  128.         $this->telephoneSecondaire $telephoneSecondaire;
  129.         return $this;
  130.     }
  131.     public function getEmail(): ?string
  132.     {
  133.         return $this->email;
  134.     }
  135.     public function setEmail(?string $email): static
  136.     {
  137.         $this->email $email;
  138.         return $this;
  139.     }
  140.     public function isIsBaptise(): ?bool
  141.     {
  142.         return $this->isBaptise;
  143.     }
  144.     public function setIsBaptise(bool $isBaptise): static
  145.     {
  146.         $this->isBaptise $isBaptise;
  147.         return $this;
  148.     }
  149.     public function getCommentaire(): ?string
  150.     {
  151.         return $this->commentaire;
  152.     }
  153.     public function setCommentaire(?string $commentaire): static
  154.     {
  155.         $this->commentaire $commentaire;
  156.         return $this;
  157.     }
  158.     /**
  159.      * @return Collection<int, ChretienFonctions>
  160.      */
  161.     public function getChretienFonctions(): Collection
  162.     {
  163.         return $this->chretienFonctions;
  164.     }
  165.     public function addChretienFonction(ChretienFonctions $chretienFonction): static
  166.     {
  167.         if (!$this->chretienFonctions->contains($chretienFonction)) {
  168.             $this->chretienFonctions->add($chretienFonction);
  169.             $chretienFonction->setChretien($this);
  170.         }
  171.         return $this;
  172.     }
  173.     public function removeChretienFonction(ChretienFonctions $chretienFonction): static
  174.     {
  175.         if ($this->chretienFonctions->removeElement($chretienFonction)) {
  176.             // set the owning side to null (unless already changed)
  177.             if ($chretienFonction->getChretien() === $this) {
  178.                 $chretienFonction->setChretien(null);
  179.             }
  180.         }
  181.         return $this;
  182.     }
  183.     /**
  184.      * @return Collection<int, ChoraleMembres>
  185.      */
  186.     public function getChoraleMembres(): Collection
  187.     {
  188.         return $this->choraleMembres;
  189.     }
  190.     public function addChoraleMembre(ChoraleMembres $choraleMembre): static
  191.     {
  192.         if (!$this->choraleMembres->contains($choraleMembre)) {
  193.             $this->choraleMembres->add($choraleMembre);
  194.             $choraleMembre->setChretien($this);
  195.         }
  196.         return $this;
  197.     }
  198.     public function removeChoraleMembre(ChoraleMembres $choraleMembre): static
  199.     {
  200.         if ($this->choraleMembres->removeElement($choraleMembre)) {
  201.             // set the owning side to null (unless already changed)
  202.             if ($choraleMembre->getChretien() === $this) {
  203.                 $choraleMembre->setChretien(null);
  204.             }
  205.         }
  206.         return $this;
  207.     }
  208.     public function getAdresse(): ?string
  209.     {
  210.         return $this->adresse;
  211.     }
  212.     public function setAdresse(string $adresse): static
  213.     {
  214.         $this->adresse $adresse;
  215.         return $this;
  216.     }
  217.     /**
  218.      * @return Collection<int, FamilleMembre>
  219.      */
  220.     public function getFamilleMembres(): Collection
  221.     {
  222.         return $this->familleMembres;
  223.     }
  224.     public function addFamilleMembre(FamilleMembre $familleMembre): static
  225.     {
  226.         if (!$this->familleMembres->contains($familleMembre)) {
  227.             $this->familleMembres->add($familleMembre);
  228.             $familleMembre->setChretien($this);
  229.         }
  230.         return $this;
  231.     }
  232.     public function removeFamilleMembre(FamilleMembre $familleMembre): static
  233.     {
  234.         if ($this->familleMembres->removeElement($familleMembre)) {
  235.             // set the owning side to null (unless already changed)
  236.             if ($familleMembre->getChretien() === $this) {
  237.                 $familleMembre->setChretien(null);
  238.             }
  239.         }
  240.         return $this;
  241.     }
  242.     /**
  243.      * @return Collection<int, Entrees>
  244.      */
  245.     public function getEntrees(): Collection
  246.     {
  247.         return $this->entrees;
  248.     }
  249.     public function addEntree(Entrees $entree): static
  250.     {
  251.         if (!$this->entrees->contains($entree)) {
  252.             $this->entrees->add($entree);
  253.             $entree->setChretien($this);
  254.         }
  255.         return $this;
  256.     }
  257.     public function removeEntree(Entrees $entree): static
  258.     {
  259.         if ($this->entrees->removeElement($entree)) {
  260.             // set the owning side to null (unless already changed)
  261.             if ($entree->getChretien() === $this) {
  262.                 $entree->setChretien(null);
  263.             }
  264.         }
  265.         return $this;
  266.     }
  267.     /**
  268.      * @return Collection<int, ConfigurationDonReconnaissance>
  269.      */
  270.     public function getConfigurationDonReconnaissances(): Collection
  271.     {
  272.         return $this->configurationDonReconnaissances;
  273.     }
  274.     public function addConfigurationDonReconnaissance(ConfigurationDonReconnaissance $configurationDonReconnaissance): static
  275.     {
  276.         if (!$this->configurationDonReconnaissances->contains($configurationDonReconnaissance)) {
  277.             $this->configurationDonReconnaissances->add($configurationDonReconnaissance);
  278.             $configurationDonReconnaissance->setChretien($this);
  279.         }
  280.         return $this;
  281.     }
  282.     public function removeConfigurationDonReconnaissance(ConfigurationDonReconnaissance $configurationDonReconnaissance): static
  283.     {
  284.         if ($this->configurationDonReconnaissances->removeElement($configurationDonReconnaissance)) {
  285.             // set the owning side to null (unless already changed)
  286.             if ($configurationDonReconnaissance->getChretien() === $this) {
  287.                 $configurationDonReconnaissance->setChretien(null);
  288.             }
  289.         }
  290.         return $this;
  291.     }
  292.     /**
  293.      * @return Collection<int, CaisseCampAdolescents>
  294.      */
  295.     public function getCaisseCampAdolescents(): Collection
  296.     {
  297.         return $this->caisseCampAdolescents;
  298.     }
  299.     public function addCaisseCampAdolescent(CaisseCampAdolescents $caisseCampAdolescent): static
  300.     {
  301.         if (!$this->caisseCampAdolescents->contains($caisseCampAdolescent)) {
  302.             $this->caisseCampAdolescents->add($caisseCampAdolescent);
  303.             $caisseCampAdolescent->setChretien($this);
  304.         }
  305.         return $this;
  306.     }
  307.     public function removeCaisseCampAdolescent(CaisseCampAdolescents $caisseCampAdolescent): static
  308.     {
  309.         if ($this->caisseCampAdolescents->removeElement($caisseCampAdolescent)) {
  310.             // set the owning side to null (unless already changed)
  311.             if ($caisseCampAdolescent->getChretien() === $this) {
  312.                 $caisseCampAdolescent->setChretien(null);
  313.             }
  314.         }
  315.         return $this;
  316.     }
  317.     public function getAnnexe(): ?Annexe
  318.     {
  319.         return $this->annexe;
  320.     }
  321.     public function setAnnexe(?Annexe $annexe): static
  322.     {
  323.         $this->annexe $annexe;
  324.         return $this;
  325.     }
  326. }