|
|
|
@ -27,6 +27,7 @@ use Symfony\Component\Validator\Constraints as Assert; |
|
|
|
|
* @UniqueEntity("code") |
|
|
|
|
* @UniqueEntity("visualCode") |
|
|
|
|
* @UniqueEntity("directory") |
|
|
|
|
* |
|
|
|
|
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Repository\CourseRepository") |
|
|
|
|
* @ORM\EntityListeners({"Chamilo\CoreBundle\Entity\Listener\CourseListener"}) |
|
|
|
|
*/ |
|
|
|
@ -66,22 +67,22 @@ class Course |
|
|
|
|
protected $users; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="AccessUrlRelCourse", mappedBy="course", cascade={"persist"}, orphanRemoval=true) |
|
|
|
|
* @ORM\OneToMany(targetEntity="AccessUrlRelCourse", mappedBy="course", cascade={"persist", "remove"}, orphanRemoval=true) |
|
|
|
|
*/ |
|
|
|
|
protected $urls; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="SessionRelCourse", mappedBy="course", cascade={"persist"}) |
|
|
|
|
* @ORM\OneToMany(targetEntity="SessionRelCourse", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $sessions; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="SessionRelCourseRelUser", mappedBy="course", cascade={"persist"}) |
|
|
|
|
* @ORM\OneToMany(targetEntity="SessionRelCourseRelUser", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $sessionUserSubscriptions; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CourseBundle\Entity\CGroupInfo", mappedBy="course", cascade={"persist"}, orphanRemoval=true) |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CourseBundle\Entity\CGroupInfo", mappedBy="course", cascade={"persist", "remove"}, orphanRemoval=true) |
|
|
|
|
*/ |
|
|
|
|
protected $groups; |
|
|
|
|
|
|
|
|
@ -91,7 +92,7 @@ class Course |
|
|
|
|
//protected $items; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CourseBundle\Entity\CTool", mappedBy="course", cascade={"persist"}) |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CourseBundle\Entity\CTool", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $tools; |
|
|
|
|
|
|
|
|
@ -106,42 +107,42 @@ class Course |
|
|
|
|
protected $currentUrl; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\SkillRelUser", mappedBy="course", cascade={"persist"}) |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\SkillRelUser", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $issuedSkills; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\GradebookCategory", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\GradebookCategory", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $gradebookCategories; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\GradebookEvaluation", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\GradebookEvaluation", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $gradebookEvaluations; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\GradebookLink", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\GradebookLink", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $gradebookLinks; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\TrackEHotspot", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\TrackEHotspot", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $trackEHotspots; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\TrackEAttempt", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\TrackEAttempt", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $trackEAttempts; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\SearchEngineRef", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\SearchEngineRef", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $searchEngineRefs; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\Templates", mappedBy="course") |
|
|
|
|
* @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\Templates", mappedBy="course", cascade={"persist", "remove"}) |
|
|
|
|
*/ |
|
|
|
|
protected $templates; |
|
|
|
|
|
|
|
|
@ -234,7 +235,9 @@ class Course |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @var string |
|
|
|
|
* |
|
|
|
|
* @Assert\Url() |
|
|
|
|
* |
|
|
|
|
* @ORM\Column(name="department_url", type="string", length=180, nullable=true, unique=false) |
|
|
|
|
*/ |
|
|
|
|
protected $departmentUrl; |
|
|
|
|