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; 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") * @ORM\JoinColumn(name="resource_node_id", referencedColumnName="id")
*/ */
protected $resourceNode; protected $resourceNode;

@ -29,7 +29,9 @@ class ResourceNode
/** /**
* @Gedmo\TreePathSource * @Gedmo\TreePathSource
*
* @ORM\Column() * @ORM\Column()
*
* @Assert\NotBlank() * @Assert\NotBlank()
*/ */
protected $name; protected $name;
@ -64,6 +66,7 @@ class ResourceNode
/** /**
* @Gedmo\TreeParent * @Gedmo\TreeParent
*
* @ORM\ManyToOne( * @ORM\ManyToOne(
* targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceNode", * targetEntity="Chamilo\CoreBundle\Entity\Resource\ResourceNode",
* inversedBy="children" * inversedBy="children"

@ -19,7 +19,7 @@ class ResourceRight
protected $id; 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") * @ORM\JoinColumn(name="resource_link_id", referencedColumnName="id")
*/ */
protected $resourceLink; protected $resourceLink;

Loading…
Cancel
Save