This commit is contained in:
parent
f2193314d9
commit
684ad68de2
@ -1534,8 +1534,8 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
|
|||||||
|
|
||||||
public function copy(Doctrine_Query $query = null)
|
public function copy(Doctrine_Query $query = null)
|
||||||
{
|
{
|
||||||
if (!$query) {
|
if ( ! $query) {
|
||||||
$query = $this;
|
$query = $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
$new = new Doctrine_Query();
|
$new = new Doctrine_Query();
|
||||||
@ -1551,11 +1551,14 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
|
|||||||
* PHP's current GC to reclaim the memory.
|
* PHP's current GC to reclaim the memory.
|
||||||
* This method can therefore be used to reduce memory usage when creating a lot
|
* This method can therefore be used to reduce memory usage when creating a lot
|
||||||
* of query objects during a request.
|
* of query objects during a request.
|
||||||
|
*
|
||||||
|
* @return Doctrine_Query this object
|
||||||
*/
|
*/
|
||||||
public function free() {
|
public function free()
|
||||||
|
{
|
||||||
$this->reset();
|
$this->reset();
|
||||||
$this->_parsers = array();
|
$this->_parsers = array();
|
||||||
$this->_dqlParts = array();
|
$this->_dqlParts = array();
|
||||||
$this->_enumParams = array();
|
$this->_enumParams = array();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user