From c67658f1febe0a701fee2fcdda87d123f074f91e Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 11 May 2017 07:58:44 +0000 Subject: [PATCH] dblayeroo : add stacktrace in debug if exception dblayeroo : clear all the join objects if clear request is called git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3636 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dblayeroo.php b/dblayeroo.php index 965254d..dbeaba9 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1321,11 +1321,19 @@ class dblayeroo $this->joins = array (); $this->whereExpression = array (); $this->whereValues = array (); + $this->groupByExpression = null; $this->orderExpression = array (); $this->limitExpression = ""; $this->setValues = array (); $this->setType = array (); $this->setForeignObj = array (); + if ($this->joinObject !== null) + { + foreach ($this->joinObject as $obj) + { + $obj->clearRequest (); + } + } } /* }}} */ @@ -2606,6 +2614,11 @@ class dblayeroo /* {{{ */ { $backtrace = debug_backtrace (); + if ($this->debug) + { + require_once ("domframework/backtrace.php"); + \backtrace::show (debug_backtrace ()); + } if (! array_key_exists (1, $backtrace)) unset ($backtrace); else