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:
parent
7eb960ea0b
commit
90f1ab06b4
|
@ -313,6 +313,13 @@ class DbQuery extends SimpleQuery
|
|||
. "\n\n";
|
||||
}
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
if ($this->select) {
|
||||
$this->select = clone $this->select;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue