JuryMembers.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * JuryMembers
  7. *
  8. * @ORM\Table(name="jury_members")
  9. * @ORM\Entity(repositoryClass="Entity\Repository\JuryMembersRepository")
  10. */
  11. class JuryMembers
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @var integer
  23. *
  24. * @ORM\Column(name="user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  25. */
  26. private $userId;
  27. /**
  28. * @var integer
  29. *
  30. * @ORM\Column(name="role_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  31. */
  32. private $roleId;
  33. /**
  34. * @var integer
  35. *
  36. * @ORM\Column(name="jury_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  37. */
  38. private $juryId;
  39. /**
  40. * @ORM\ManyToOne(targetEntity="User")
  41. * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id")
  42. */
  43. private $user;
  44. /**
  45. * @ORM\ManyToOne(targetEntity="Jury")
  46. * @ORM\JoinColumn(name="jury_id", referencedColumnName="id")
  47. */
  48. private $jury;
  49. /**
  50. * @ORM\ManyToOne(targetEntity="Role")
  51. * @ORM\JoinColumn(name="role_id", referencedColumnName="id")
  52. */
  53. private $role;
  54. /**
  55. * @ORM\OneToMany(targetEntity="JuryMemberRelUser", mappedBy="member")
  56. */
  57. private $students;
  58. public function __construct()
  59. {
  60. $this->students = new ArrayCollection();
  61. }
  62. public function getStudents()
  63. {
  64. return $this->students;
  65. }
  66. public function setStudents($students)
  67. {
  68. $this->students = $students;
  69. }
  70. public function getRole()
  71. {
  72. return $this->role;
  73. }
  74. public function setRole(Role $role)
  75. {
  76. $this->role = $role;
  77. }
  78. public function setJury(Jury $jury)
  79. {
  80. $this->jury = $jury;
  81. }
  82. public function getUser()
  83. {
  84. return $this->user;
  85. }
  86. public function setUser(User $user)
  87. {
  88. $this->user = $user;
  89. }
  90. /**
  91. * Get id
  92. *
  93. * @return integer
  94. */
  95. public function getId()
  96. {
  97. return $this->id;
  98. }
  99. /**
  100. * Set userId
  101. *
  102. * @param integer $userId
  103. * @return JuryMembers
  104. */
  105. public function setUserId($userId)
  106. {
  107. $this->userId = $userId;
  108. return $this;
  109. }
  110. /**
  111. * Get userId
  112. *
  113. * @return integer
  114. */
  115. public function getUserId()
  116. {
  117. return $this->userId;
  118. }
  119. /**
  120. * Set roleId
  121. *
  122. * @param integer $roleId
  123. * @return JuryMembers
  124. */
  125. public function setRoleId($roleId)
  126. {
  127. $this->roleId = $roleId;
  128. return $this;
  129. }
  130. /**
  131. * Get roleId
  132. *
  133. * @return integer
  134. */
  135. public function getRoleId()
  136. {
  137. return $this->roleId;
  138. }
  139. /**
  140. * Set juryId
  141. *
  142. * @param integer $id
  143. * @return JuryMembers
  144. */
  145. public function setJuryId($id)
  146. {
  147. $this->juryId = $id;
  148. return $this;
  149. }
  150. /**
  151. * Get juryId
  152. *
  153. * @return integer
  154. */
  155. public function getJuryId()
  156. {
  157. return $this->juryId;
  158. }
  159. }