/** * Returns the SQL string for the WHERE portion of the query * * @param DialectInterface $dialect * @return string */ public function buildWhereSQL(DialectInterface $dialect) { if (!isset($this->whereBuilder) || !$this->whereBuilder->hasConditions()) { return ''; } return 'WHERE ' . $this->whereBuilder->buildConditionSQL($dialect); }
/** * Returns the SQL string for the WHERE portion of the query * * @param DialectInterface $dialect * @return string */ public function buildHavingSQL(DialectInterface $dialect) { if (!isset($this->havingBuilder) || !$this->havingBuilder->hasConditions()) { return ''; } return 'HAVING ' . $this->havingBuilder->buildConditionSQL($dialect); }