'student', 2 => 'course_coach', ]; /** * @var int * * @ORM\Column(name="id", type="integer", nullable=false, unique=false) * @ORM\Id * @ORM\GeneratedValue */ protected $id; /** * @var User * * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="sessionCourseSubscriptions", cascade={"persist"}) * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false) */ protected $user; /** * @var Session * @Groups({"session_rel_course_rel_user:read"}) * @ORM\ManyToOne(targetEntity="Session", inversedBy="userCourseSubscriptions", cascade={"persist"}) * @ORM\JoinColumn(name="session_id", referencedColumnName="id", nullable=false) */ protected $session; /** * @var Course * @Groups({"session_rel_course_rel_user:read"}) * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course", inversedBy="sessionUserSubscriptions", cascade={"persist"}) * @ORM\JoinColumn(name="c_id", referencedColumnName="id", nullable=false) */ protected $course; /** * @var int * * @ORM\Column(name="visibility", type="integer", nullable=false, unique=false) */ protected $visibility; /** * @var int * * @ORM\Column(name="status", type="integer", nullable=false, unique=false) */ protected $status; /** * @var int * * @ORM\Column(name="legal_agreement", type="integer", nullable=true, unique=false) */ protected $legalAgreement; /** * Constructor. */ public function __construct() { $this->visibility = 1; } /** * @return Session */ public function getSession() { return $this->session; } /** * @param Session $session * * @return $this */ public function setSession($session) { $this->session = $session; return $this; } /** * @return Course */ public function getCourse() { return $this->course; } /** * @param Course $course * * @return $this */ public function setCourse($course) { $this->course = $course; return $this; } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set visibility. * * @param int $visibility * * @return SessionRelCourseRelUser */ public function setVisibility($visibility) { $this->visibility = $visibility; return $this; } /** * Get visibility. * * @return int */ public function getVisibility() { return $this->visibility; } /** * Set status. * * @param int $status * * @return SessionRelCourseRelUser */ public function setStatus($status) { $this->status = $status; return $this; } /** * Get status. * * @return int */ public function getStatus() { return $this->status; } /** * Set legalAgreement. * * @param int $legalAgreement * * @return $this */ public function setLegalAgreement($legalAgreement) { $this->legalAgreement = $legalAgreement; return $this; } /** * Get legalAgreement. * * @return int */ public function getLegalAgreement() { return $this->legalAgreement; } }