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
This commit is contained in:
2017-05-11 07:58:44 +00:00
parent 5b30ec5b62
commit c67658f1fe

View File

@@ -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