src/Entity/TiersDeConfiance.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TiersDeConfianceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=TiersDeConfianceRepository::class)
  7. */
  8. class TiersDeConfiance
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="tiersDeConfiances")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $main;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Inscription::class, inversedBy="tiersDeConfiances")
  23. * @ORM\JoinColumn(nullable=true)
  24. */
  25. private $inscription;
  26. /**
  27. * @ORM\Column(type="string", length=255)
  28. */
  29. private $relation;
  30. /**
  31. * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="tiersDeConfianceRelations",cascade={"persist"})
  32. * @ORM\JoinColumn(nullable=false)
  33. */
  34. private $tiers;
  35. public function getId(): ?int
  36. {
  37. return $this->id;
  38. }
  39. public function getMain(): ?Contact
  40. {
  41. return $this->main;
  42. }
  43. public function setMain(?Contact $main): self
  44. {
  45. $this->main = $main;
  46. return $this;
  47. }
  48. public function getInscription(): ?Contact
  49. {
  50. return $this->inscription;
  51. }
  52. public function setInscription(?Inscription $main): self
  53. {
  54. $this->inscription = $main;
  55. return $this;
  56. }
  57. public function getRelation(): ?string
  58. {
  59. return $this->relation;
  60. }
  61. public function setRelation(string $relation): self
  62. {
  63. $this->relation = $relation;
  64. return $this;
  65. }
  66. public function getTiers(): ?Contact
  67. {
  68. return $this->tiers;
  69. }
  70. public function setTiers(?Contact $tiers): self
  71. {
  72. $this->tiers = $tiers;
  73. return $this;
  74. }
  75. }