[2.0] DDC-492 - Allow access to ParserResult and Query in TreeWalkerAdapter
This commit is contained in:
parent
304cc2e0cc
commit
289ce4727b
@ -43,11 +43,34 @@ abstract class TreeWalkerAdapter implements TreeWalker
|
|||||||
$this->_parserResult = $parserResult;
|
$this->_parserResult = $parserResult;
|
||||||
$this->_queryComponents = $queryComponents;
|
$this->_queryComponents = $queryComponents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
protected function _getQueryComponents()
|
protected function _getQueryComponents()
|
||||||
{
|
{
|
||||||
return $this->_queryComponents;
|
return $this->_queryComponents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve Query Instance reponsible for the current walkers execution.
|
||||||
|
*
|
||||||
|
* @return Doctrine\ORM\Query
|
||||||
|
*/
|
||||||
|
protected function _getQuery()
|
||||||
|
{
|
||||||
|
return $this->_query;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve ParserResult
|
||||||
|
*
|
||||||
|
* @return Doctrine\ORM\Query\ParserResult
|
||||||
|
*/
|
||||||
|
protected function _getParserResult()
|
||||||
|
{
|
||||||
|
return $this->_parserResult;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Walks down a SelectStatement AST node, thereby generating the appropriate SQL.
|
* Walks down a SelectStatement AST node, thereby generating the appropriate SQL.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user