From a305e05b0b3efaa1cc4bcb6ade108d275327cc73 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 24 Sep 2018 09:10:03 +0200 Subject: [PATCH] Minor - fix invalid entities --- src/CoreBundle/Entity/Resource/ResourceLink.php | 2 +- src/CoreBundle/Entity/Resource/ResourceNode.php | 3 +++ src/CoreBundle/Entity/Resource/ResourceRight.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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;