123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- <?php
- namespace Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * CourseRelUser
- *
- * @ORM\Table(name="course_rel_user")
- * @ORM\Entity
- */
- class CourseRelUser
- {
- /**
- * @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 string
- *
- * @ORM\Column(name="course_code", type="string", length=40, precision=0, scale=0, nullable=false, unique=false)
- */
- private $courseCode;
- /**
- * @var integer
- *
- * @ORM\Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $userId;
- /**
- * @var integer
- *
- * @ORM\Column(name="relation_type", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $relationType;
- /**
- * @var boolean
- *
- * @ORM\Column(name="status", type="boolean", precision=0, scale=0, nullable=false, unique=false)
- */
- private $status;
- /**
- * @var string
- *
- * @ORM\Column(name="role", type="string", length=60, precision=0, scale=0, nullable=true, unique=false)
- */
- private $role;
- /**
- * @var integer
- *
- * @ORM\Column(name="group_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $groupId;
- /**
- * @var integer
- *
- * @ORM\Column(name="tutor_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $tutorId;
- /**
- * @var integer
- *
- * @ORM\Column(name="sort", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $sort;
- /**
- * @var integer
- *
- * @ORM\Column(name="user_course_cat", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $userCourseCat;
- /**
- * @var integer
- *
- * @ORM\Column(name="legal_agreement", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $legalAgreement;
- /**
- * @var integer
- *
- * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $cId;
- /**
- * @ORM\ManyToOne(targetEntity="User")
- * @ORM\JoinColumn(name="user_id", referencedColumnName="user_id")
- */
- private $user;
- /**
- * @ORM\ManyToOne(targetEntity="Course")
- * @ORM\JoinColumn(name="c_id", referencedColumnName="id")
- */
- private $course;
- public function __construct(Course $course, User $user)
- {
- $this->course = $course;
- $this->user = $user;
- }
- /**
- * Set cId
- *
- * @param integer $cId
- * @return CourseRelUser
- */
- public function setCId($cId)
- {
- $this->cId = $cId;
- return $this;
- }
- /**
- * Get cId
- *
- * @return integer
- */
- public function getCId()
- {
- return $this->cId;
- }
- /**
- * Set courseCode
- *
- * @param string $courseCode
- * @return CourseRelUser
- */
- public function setCourseCode($courseCode)
- {
- $this->courseCode = $courseCode;
- return $this;
- }
- /**
- * Get courseCode
- *
- * @return string
- */
- public function getCourseCode()
- {
- return $this->courseCode;
- }
- /**
- * Set userId
- *
- * @param integer $userId
- * @return CourseRelUser
- */
- public function setUserId($userId)
- {
- $this->userId = $userId;
- return $this;
- }
- /**
- * Get userId
- *
- * @return integer
- */
- public function getUserId()
- {
- return $this->userId;
- }
- /**
- * Set relationType
- *
- * @param integer $relationType
- * @return CourseRelUser
- */
- public function setRelationType($relationType)
- {
- $this->relationType = $relationType;
- return $this;
- }
- /**
- * Get relationType
- *
- * @return integer
- */
- public function getRelationType()
- {
- return $this->relationType;
- }
- /**
- * Set status
- *
- * @param boolean $status
- * @return CourseRelUser
- */
- public function setStatus($status)
- {
- $this->status = $status;
- return $this;
- }
- /**
- * Get status
- *
- * @return boolean
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Set role
- *
- * @param string $role
- * @return CourseRelUser
- */
- public function setRole($role)
- {
- $this->role = $role;
- return $this;
- }
- /**
- * Get role
- *
- * @return string
- */
- public function getRole()
- {
- return $this->role;
- }
- /**
- * Set groupId
- *
- * @param integer $groupId
- * @return CourseRelUser
- */
- public function setGroupId($groupId)
- {
- $this->groupId = $groupId;
- return $this;
- }
- /**
- * Get groupId
- *
- * @return integer
- */
- public function getGroupId()
- {
- return $this->groupId;
- }
- /**
- * Set tutorId
- *
- * @param integer $tutorId
- * @return CourseRelUser
- */
- public function setTutorId($tutorId)
- {
- $this->tutorId = $tutorId;
- return $this;
- }
- /**
- * Get tutorId
- *
- * @return integer
- */
- public function getTutorId()
- {
- return $this->tutorId;
- }
- /**
- * Set sort
- *
- * @param integer $sort
- * @return CourseRelUser
- */
- public function setSort($sort)
- {
- $this->sort = $sort;
- return $this;
- }
- /**
- * Get sort
- *
- * @return integer
- */
- public function getSort()
- {
- return $this->sort;
- }
- /**
- * Set userCourseCat
- *
- * @param integer $userCourseCat
- * @return CourseRelUser
- */
- public function setUserCourseCat($userCourseCat)
- {
- $this->userCourseCat = $userCourseCat;
- return $this;
- }
- /**
- * Get userCourseCat
- *
- * @return integer
- */
- public function getUserCourseCat()
- {
- return $this->userCourseCat;
- }
- /**
- * Set legalAgreement
- *
- * @param integer $legalAgreement
- * @return CourseRelUser
- */
- public function setLegalAgreement($legalAgreement)
- {
- $this->legalAgreement = $legalAgreement;
- return $this;
- }
- /**
- * Get legalAgreement
- *
- * @return integer
- */
- public function getLegalAgreement()
- {
- return $this->legalAgreement;
- }
- }
|