1
0
mirror of synced 2025-01-29 19:41:45 +03:00
This commit is contained in:
zYne 2007-07-08 20:18:50 +00:00
parent 4004541b60
commit fcc58778c5

View File

@ -314,6 +314,21 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
return $this;
}
/**
* getDqlPart
* returns the given DQL query part
*
* @param string $queryPart the name of the query part
* @return string the DQL query part
*/
public function getDqlPart($queryPart)
{
if ( ! isset($this->_dqlParts[$queryPart])) {
throw new Doctrine_Query_Exception('Unknown query part ' . $queryPart);
}
return $this->_dqlParts[$queryPart];
}
/**
* getDql
* returns the DQL query associated with this object
@ -509,7 +524,7 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
*
* @return void
*/
public function processPendingSubqueries()
public function processPendingSubqueries()
{
foreach ($this->pendingSubqueries as $value) {
list($dql, $alias) = $value;