Update resource entities see #2326

pull/2715/head
Julio 6 years ago
parent 183e816af6
commit d076ea82cd
  1. 8
      src/CoreBundle/Entity/Resource/ResourceLink.php
  2. 1
      src/CoreBundle/Entity/Resource/ResourceNode.php
  3. 3
      src/CoreBundle/Entity/Resource/ResourceType.php

@ -325,4 +325,12 @@ class ResourceLink implements ResourceInterface
return $this; return $this;
} }
/**
* @return $this
*/
public function getResource()
{
return $this;
}
} }

@ -3,7 +3,6 @@
namespace Chamilo\CoreBundle\Entity\Resource; namespace Chamilo\CoreBundle\Entity\Resource;
use Chamilo\CoreBundle\Entity\Tool;
use Chamilo\UserBundle\Entity\User; use Chamilo\UserBundle\Entity\User;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;

@ -67,6 +67,7 @@ class ResourceType
/** /**
* @param mixed $id * @param mixed $id
*
* @return ResourceType * @return ResourceType
*/ */
public function setId($id) public function setId($id)
@ -106,6 +107,7 @@ class ResourceType
/** /**
* @param Tool $tool * @param Tool $tool
*
* @return ResourceType * @return ResourceType
*/ */
public function setTool($tool) public function setTool($tool)
@ -125,6 +127,7 @@ class ResourceType
/** /**
* @param mixed $resourceNodes * @param mixed $resourceNodes
*
* @return ResourceType * @return ResourceType
*/ */
public function setResourceNodes($resourceNodes) public function setResourceNodes($resourceNodes)

Loading…
Cancel
Save