. */ /** * HavingClause = "HAVING" ConditionalExpression * * @package Doctrine * @subpackage Query * @author Guilherme Blanco * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 1.0 * @version $Revision$ */ class Doctrine_Query_Production_HavingClause extends Doctrine_Query_Production { protected $_conditionalExpression; public function syntax($paramHolder) { // HavingClause = "HAVING" ConditionalExpression $this->_parser->match(Doctrine_Query_Token::T_HAVING); $this->_conditionalExpression = $this->AST('ConditionalExpression', $paramHolder); } public function buildSql() { return 'HAVING ' . $this->_conditionalExpression->buildSql(); } }