Commit 684ad68d authored by zYne's avatar zYne

--no commit message

--no commit message
parent f2193314
...@@ -1534,7 +1534,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable ...@@ -1534,7 +1534,7 @@ 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;
} }
...@@ -1551,8 +1551,11 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable ...@@ -1551,8 +1551,11 @@ 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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment