1
0
mirror of synced 2025-01-30 20:11:49 +03:00

[2.0] DDC-492 - Allow access to ParserResult and Query in TreeWalkerAdapter

This commit is contained in:
beberlei 2010-04-04 22:24:37 +00:00
parent 304cc2e0cc
commit 289ce4727b

View File

@ -44,11 +44,34 @@ abstract class TreeWalkerAdapter implements TreeWalker
$this->_queryComponents = $queryComponents;
}
/**
* @return array
*/
protected function _getQueryComponents()
{
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.
*