Fixed stopper issue (found with an audit) due to copies of DBObjectSearch not cloned (or not cloned well)

There is still one place where this should be fixed, but it reveals another bug so we've decided to leave it as is for the moment (see comment in DBObjectSearch::AddCondition_PointingTo)

SVN:trunk[2497]
This commit is contained in:
Romain Quetiez
2012-12-04 13:26:48 +00:00
parent 90bc24d5c0
commit 1e155ffc13
6 changed files with 35 additions and 22 deletions

View File

@@ -72,6 +72,14 @@ class SQLQuery
$this->m_oSelectedIdField = $oSelectedIdField;
}
/**
* Perform a deep clone (as opposed to "clone" which does copy a reference to the underlying objects
**/
public function DeepClone()
{
return unserialize(serialize($this));
}
public function GetTableAlias()
{
return $this->m_sTableAlias;