From bccafb4740334c4a5e02091f15bd6c1dd53dd369 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 6 Sep 2018 14:34:43 +0200 Subject: [PATCH] Optimized ORM Draft --- .../src/Entity/Attribut/ChildsAttribut.php | 28 +++++++++++++++++++ .../Attribut/ChildsAttributeInterface.php | 15 ++++++++++ .../src/Entity/Attribut/NodeAttribut.php | 2 +- .../src/Entity/Attribut/ParentAttribut.php | 5 ++-- application/src/Entity/Node.php | 27 ++++++++++++------ application/src/Entity/NodeInterface.php | 10 ++----- 6 files changed, 68 insertions(+), 19 deletions(-) create mode 100644 application/src/Entity/Attribut/ChildsAttribut.php create mode 100644 application/src/Entity/Attribut/ChildsAttributeInterface.php diff --git a/application/src/Entity/Attribut/ChildsAttribut.php b/application/src/Entity/Attribut/ChildsAttribut.php new file mode 100644 index 0000000..6583485 --- /dev/null +++ b/application/src/Entity/Attribut/ChildsAttribut.php @@ -0,0 +1,28 @@ +getChilds(); + } + + public function setChilds(ArrayCollection $childs): void + { + $this->childs = $childs; + } + +} + diff --git a/application/src/Entity/Attribut/ChildsAttributeInterface.php b/application/src/Entity/Attribut/ChildsAttributeInterface.php new file mode 100644 index 0000000..a8bd3af --- /dev/null +++ b/application/src/Entity/Attribut/ChildsAttributeInterface.php @@ -0,0 +1,15 @@ +