|
|
|
@ -6,6 +6,7 @@ namespace Chamilo\CoreBundle\Traits; |
|
|
|
|
|
|
|
|
|
use Chamilo\CoreBundle\Entity\Course; |
|
|
|
|
use Chamilo\CoreBundle\Entity\Session; |
|
|
|
|
use Chamilo\CourseBundle\Entity\CGroup; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Trait CourseControllerTrait. |
|
|
|
@ -81,7 +82,7 @@ trait CourseControllerTrait |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return $this->getDoctrine()->getManager()->find('ChamiloCourseBundle:CGroup', $groupId); |
|
|
|
|
return $this->getDoctrine()->getManager()->find(CGroup::class, $groupId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getCourseUrlQuery(): string |
|
|
|
|