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