This commit is contained in:
parent
4004541b60
commit
fcc58778c5
1 changed files with 16 additions and 1 deletions
|
@ -314,6 +314,21 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
|
||||||
|
|
||||||
return $this;
|
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
|
* getDql
|
||||||
* returns the DQL query associated with this object
|
* returns the DQL query associated with this object
|
||||||
|
|
Loading…
Add table
Reference in a new issue