protected function buildQuery() { $this->init(); if (empty($this->context->statements['SELECT'])) { $this->context->statements['SELECT'][] = $this->getTableAlias() . '.*'; } return parent::buildQuery(); }
/** * @return string */ protected function buildQuery() { $this->init(); if ($this->context->statements['FROM']) { unset($this->clauses['DELETE FROM']); } else { unset($this->clauses['DELETE']); } return parent::buildQuery(); }