123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?php
- namespace Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * JuryMembers
- *
- * @ORM\Table(name="jury_members")
- * @ORM\Entity(repositoryClass="Entity\Repository\JuryMembersRepository")
- */
- class JuryMembers
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $userId;
- /**
- * @var integer
- *
- * @ORM\Column(name="role_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $roleId;
- /**
- * @var integer
- *
- * @ORM\Column(name="jury_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $juryId;
- /**
- * @ORM\ManyToOne(targetEntity="User")
- * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id")
- */
- private $user;
- /**
- * @ORM\ManyToOne(targetEntity="Jury")
- * @ORM\JoinColumn(name="jury_id", referencedColumnName="id")
- */
- private $jury;
- /**
- * @ORM\ManyToOne(targetEntity="Role")
- * @ORM\JoinColumn(name="role_id", referencedColumnName="id")
- */
- private $role;
- /**
- * @ORM\OneToMany(targetEntity="JuryMemberRelUser", mappedBy="member")
- */
- private $students;
- public function __construct()
- {
- $this->students = new ArrayCollection();
- }
- public function getStudents()
- {
- return $this->students;
- }
- public function setStudents($students)
- {
- $this->students = $students;
- }
- public function getRole()
- {
- return $this->role;
- }
- public function setRole(Role $role)
- {
- $this->role = $role;
- }
- public function setJury(Jury $jury)
- {
- $this->jury = $jury;
- }
- public function getUser()
- {
- return $this->user;
- }
- public function setUser(User $user)
- {
- $this->user = $user;
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set userId
- *
- * @param integer $userId
- * @return JuryMembers
- */
- public function setUserId($userId)
- {
- $this->userId = $userId;
- return $this;
- }
- /**
- * Get userId
- *
- * @return integer
- */
- public function getUserId()
- {
- return $this->userId;
- }
- /**
- * Set roleId
- *
- * @param integer $roleId
- * @return JuryMembers
- */
- public function setRoleId($roleId)
- {
- $this->roleId = $roleId;
- return $this;
- }
- /**
- * Get roleId
- *
- * @return integer
- */
- public function getRoleId()
- {
- return $this->roleId;
- }
- /**
- * Set juryId
- *
- * @param integer $id
- * @return JuryMembers
- */
- public function setJuryId($id)
- {
- $this->juryId = $id;
- return $this;
- }
- /**
- * Get juryId
- *
- * @return integer
- */
- public function getJuryId()
- {
- return $this->juryId;
- }
- }
|