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);