From: Vincent Vanwaelscappel Date: Thu, 19 May 2022 18:19:36 +0000 (+0200) Subject: Revert "wip #4285" X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bf8da736be54d594435c299f7a3890e3dc622d28;p=cubist_cms-back.git Revert "wip #4285" This reverts commit f1664eb2b07ef8ec666599940575aa1664149fbb. --- diff --git a/src/app/Magic/Fields/BunchOfFieldsMultiple.php b/src/app/Magic/Fields/BunchOfFieldsMultiple.php index 3593b56..309e4e8 100644 --- a/src/app/Magic/Fields/BunchOfFieldsMultiple.php +++ b/src/app/Magic/Fields/BunchOfFieldsMultiple.php @@ -49,9 +49,7 @@ class BunchOfFieldsMultiple extends BunchOfFields implements InterfaceBunchOfFie } if (is_string($bunch)) { if (class_exists($bunch)) { - /** @var InterfaceBunchOfFields $bunchInstance */ $bunchInstance = new $bunch(); - $bunchInstance->setRootEntry($this->getRootEntry()); if (method_exists($bunchInstance, 'getFields')) { $this->_fields = $bunchInstance->getFields(); } diff --git a/src/app/Magic/InterfaceBunchOfFields.php b/src/app/Magic/InterfaceBunchOfFields.php index 425a6d0..851f5b0 100644 --- a/src/app/Magic/InterfaceBunchOfFields.php +++ b/src/app/Magic/InterfaceBunchOfFields.php @@ -37,14 +37,4 @@ interface InterfaceBunchOfFields * @return bool */ public function hasField($name): bool; - - /** - * @return InterfaceBunchOfFields - */ - public function getRootEntry(): ?InterfaceBunchOfFields; - - /** - * @param InterfaceBunchOfFields $rootEntry - */ - public function setRootEntry(InterfaceBunchOfFields $rootEntry): void; }