. */ /** * WhereClause = "WHERE" 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_WhereClause extends Doctrine_Query_Production { protected $_conditionalExpression; public function syntax($paramHolder) { // WhereClause = "WHERE" ConditionalExpression $this->_parser->match(Doctrine_Query_Token::T_WHERE); $this->_conditionalExpression = $this->AST('ConditionalExpression', $paramHolder); } public function buildSql() { return ' WHERE ' . $this->_conditionalExpression->buildSql(); } }