Optimized schema mapping

This commit is contained in:
Kevin Frantz 2018-10-31 22:02:01 +01:00
parent ad00c57143
commit 492b9bed4a

View File

@ -41,7 +41,7 @@ final class Relation extends AbstractMeta implements RelationInterface
/** /**
* Childs represent the by the object produced relations. * Childs represent the by the object produced relations.
* @ORM\ManyToMany(targetEntity="Relation") * @ORM\ManyToMany(targetEntity="Relation",inversedBy="parents")
* @ORM\JoinTable(name="meta_relation_childs", * @ORM\JoinTable(name="meta_relation_childs",
* joinColumns={@ORM\JoinColumn(name="relation_id", referencedColumnName="id")}, * joinColumns={@ORM\JoinColumn(name="relation_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")} * inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")}