Db\DbQuery: add "deep" clone support

Still far from being complete, Zend_Db_Select makes life really hard for
us. More to come...
This commit is contained in:
Thomas Gelf 2014-11-16 17:06:26 +01:00
parent 7eb960ea0b
commit 90f1ab06b4
1 changed files with 7 additions and 0 deletions

View File

@ -313,6 +313,13 @@ class DbQuery extends SimpleQuery
. "\n\n";
}
public function __clone()
{
if ($this->select) {
$this->select = clone $this->select;
}
}
/**
* @return string
*/