. */ /** * IdentificationVariable ::= identifier * * @package Doctrine * @subpackage Query * @author Guilherme Blanco * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class Doctrine_Query_AST_IdentificationVariable extends Doctrine_Query_AST { protected $_componentAlias; /* Setters */ public function setComponentAlias($componentAlias) { $this->_componentAlias = $componentAlias; } /* Getters */ public function getComponentAlias() { return $this->_componentAlias; } /* REMOVE ME LATER. COPIED METHODS FROM SPLIT OF PRODUCTION INTO "AST" AND "PARSER" */ public function buildSql() { $conn = $this->_parserResult->getEntityManager()->getConnection(); return $conn->quoteIdentifier( $this->_parserResult->getTableAliasFromComponentAlias($this->_componentAlias) ); } }