From 0785f07d92103182a47b30330164fe608abf5b7a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 11 May 2017 08:35:41 +0000 Subject: [PATCH] dblayeroo : after cleaning all the child objects, remove the instances git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3638 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dblayeroo.php b/dblayeroo.php index 9edfb70..e9c30c8 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1315,6 +1315,14 @@ class dblayeroo /* {{{ */ { $this->debugLog ("Entering clearRequest ()"); + if ($this->joinObject !== null) + { + foreach ($this->joinObject as $obj) + { + $obj->clearRequest (); + } + $this->joinObject = null; + } $this->command = ""; $this->distinct = ""; $this->displayColumn = null; @@ -1327,13 +1335,6 @@ class dblayeroo $this->setValues = array (); $this->setType = array (); $this->setForeignObj = array (); - if ($this->joinObject !== null) - { - foreach ($this->joinObject as $obj) - { - $obj->clearRequest (); - } - } } /* }}} */ @@ -2382,6 +2383,7 @@ class dblayeroo $objTmp = clone $this; $objTmp->debugDepth++; $objTmp->clearRequest (); +echo "OBJTMP";var_dump ($objTmp); $objTmp->Select (); $objTmp->displayAdd ($this->primary); $objTmp->displayAdd ($columns);