|
|
|
@ -5,6 +5,7 @@ |
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
|
|
namespace Chamilo\CoreBundle\Entity; |
|
|
|
|
|
|
|
|
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
use ApiPlatform\Core\Annotation\ApiResource; |
|
|
|
|
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
use Gedmo\Mapping\Annotation as Gedmo; |
|
|
|
use Gedmo\Mapping\Annotation as Gedmo; |
|
|
|
use Symfony\Component\Serializer\Annotation\Groups; |
|
|
|
use Symfony\Component\Serializer\Annotation\Groups; |
|
|
|
@ -35,6 +36,8 @@ class AccessUrl extends AbstractResource implements ResourceInterface |
|
|
|
protected $id; |
|
|
|
protected $id; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* @var AccessUrlRelCourse[]|ArrayCollection |
|
|
|
|
|
|
|
* |
|
|
|
* @ORM\OneToMany(targetEntity="AccessUrlRelCourse", mappedBy="url", cascade={"persist"}, orphanRemoval=true) |
|
|
|
* @ORM\OneToMany(targetEntity="AccessUrlRelCourse", mappedBy="url", cascade={"persist"}, orphanRemoval=true) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected $courses; |
|
|
|
protected $courses; |
|
|
|
|