Minor - fix invalid entities

pull/2715/head
Julio Montoya 6 years ago
parent 29b5acd09e
commit a305e05b0b
  1. 2
      src/CoreBundle/Entity/Resource/ResourceLink.php
  2. 3
      src/CoreBundle/Entity/Resource/ResourceNode.php
  3. 2
      src/CoreBundle/Entity/Resource/ResourceRight.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;

@ -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"

@ -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;

Loading…
Cancel
Save