From 492b9bed4a713451eb010d98c197fc0fa0928d44 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 31 Oct 2018 22:02:01 +0100 Subject: [PATCH] Optimized schema mapping --- application/src/Entity/Meta/Relation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/Entity/Meta/Relation.php b/application/src/Entity/Meta/Relation.php index 9df853c..016dc0a 100644 --- a/application/src/Entity/Meta/Relation.php +++ b/application/src/Entity/Meta/Relation.php @@ -41,7 +41,7 @@ final class Relation extends AbstractMeta implements RelationInterface /** * Childs represent the by the object produced relations. - * @ORM\ManyToMany(targetEntity="Relation") + * @ORM\ManyToMany(targetEntity="Relation",inversedBy="parents") * @ORM\JoinTable(name="meta_relation_childs", * joinColumns={@ORM\JoinColumn(name="relation_id", referencedColumnName="id")}, * inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")}