diff --git a/src/CoreBundle/Entity/Resource/ResourceLink.php b/src/CoreBundle/Entity/Resource/ResourceLink.php index 22f1377c41..89fa3d6f5f 100644 --- a/src/CoreBundle/Entity/Resource/ResourceLink.php +++ b/src/CoreBundle/Entity/Resource/ResourceLink.php @@ -31,7 +31,7 @@ class ResourceLink implements ResourceInterface protected $id; /** - * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceNode", inversedBy="links") + * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceNode", inversedBy="resourceLinks") * @ORM\JoinColumn(name="resource_node_id", referencedColumnName="id") */ protected $resourceNode; diff --git a/src/CoreBundle/Entity/Resource/ResourceNode.php b/src/CoreBundle/Entity/Resource/ResourceNode.php index 6e52851059..fbe690c83a 100644 --- a/src/CoreBundle/Entity/Resource/ResourceNode.php +++ b/src/CoreBundle/Entity/Resource/ResourceNode.php @@ -29,7 +29,9 @@ class ResourceNode /** * @Gedmo\TreePathSource + * * @ORM\Column() + * * @Assert\NotBlank() */ protected $name; @@ -64,6 +66,7 @@ class ResourceNode /** * @Gedmo\TreeParent + * * @ORM\ManyToOne( * targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceNode", * inversedBy="children" diff --git a/src/CoreBundle/Entity/Resource/ResourceRight.php b/src/CoreBundle/Entity/Resource/ResourceRight.php index 5cbfb04712..1fc5a4ccd4 100644 --- a/src/CoreBundle/Entity/Resource/ResourceRight.php +++ b/src/CoreBundle/Entity/Resource/ResourceRight.php @@ -19,7 +19,7 @@ class ResourceRight protected $id; /** - * @ORM\OneToOne(targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceLink", inversedBy="rights") + * @ORM\OneToOne(targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceLink", inversedBy="resourceRight") * @ORM\JoinColumn(name="resource_link_id", referencedColumnName="id") */ protected $resourceLink;