1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-05-24 17:13:59 +00:00
parent 4b7a4a0e97
commit 074a434ae2

View File

@ -249,7 +249,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
} else {
$this->_dqlParts[$queryPartName] = array($queryPart);
}
if ($this->_options['resultSetCache'] || $this->_options['parserCache']) {
if ( ! $this->_options['resultSetCache'] && ! $this->_options['parserCache']) {
$this->getParser($queryPartName)->parse($queryPart);
}
@ -432,8 +432,6 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
$sql = $this->createSubquery()->parseQuery($dql, false)->getQuery();
reset($this->_aliasMap);
$componentAlias = key($this->_aliasMap);
$tableAlias = $this->getTableAlias($componentAlias);
@ -687,7 +685,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
}
// append sql query into cache
if ($this->_options['parserCache'] !== false) {
if ($this->_options['parserCache'] !== false) {
$this->_options['parserCache']->save($hash, $q);
}
return $q;