]> _ Git - cubist_cms-back.git/commitdiff
Revert "wip #4285"
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 19 May 2022 18:19:36 +0000 (20:19 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 19 May 2022 18:19:36 +0000 (20:19 +0200)
This reverts commit f1664eb2b07ef8ec666599940575aa1664149fbb.

src/app/Magic/Fields/BunchOfFieldsMultiple.php
src/app/Magic/InterfaceBunchOfFields.php

index 3593b56376fb5ce933ea43f375e859362bcce3ea..309e4e81ee1affc6b5266cfbcaf31cf379e88df6 100644 (file)
@@ -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();
                 }
index 425a6d02580269af884d60afce12e2c3e8b96d99..851f5b00902234ba274aba750aa321a7a8ef09f0 100644 (file)
@@ -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;
 }