/** * Строит WHERE часть запроса * @internal * @param ISelectBuilder|IUpdateBuilder|IDeleteBuilder $query * @return string */ private function buildWherePart($query) { if (!($exprGroup = $query->getWhereExpressionGroup())) { return ''; } return "\nWHERE " . $this->buildExpressionGroup($exprGroup); }