Commit 89cb0eca authored by pookey's avatar pookey

refs #712

parent bd2e0d8e
......@@ -1518,6 +1518,27 @@ abstract class Doctrine_Query_Abstract
{
return $this->_sqlParts;
}
/**
* getQueryPartValue
* return the value of queryPartName
*
* @param $queryPartName
* @return mixed value of queryPartName
*
*/
public function getQueryPartValue($queryPartName)
{
if(isset($this->_dqlParts[$queryPartName])) {
if(count($this->_dqlParts[$queryPartName]) == 1) {
return $this->_dqlParts[$queryPartName][0];
} else {
return $this->_dqlParts[$queryPartName];
}
} else {
return null;
}
}
/**
* getType
......
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