public function generate($options) { parent::generate($options); $statement = ''; $statement .= $this->generateDelete($options); $statement .= ' '; $statement .= $this->generateWhere($options); $statement .= ' '; return new \Pvik\Database\SQL\Statement\Statement($statement, $this->parameters); }
public function generate($options) { parent::generate($options); $statement = $this->generateSelect($options); $statement .= ' '; $statement .= $this->generateFrom($options); $statement .= ' '; $statement .= $this->generateLeftJoins($options); $statement .= ' '; $statement .= $this->generateInnerJoins($options); $statement .= ' '; $statement .= $this->generateWhere($options); $statement .= ' '; $statement .= $this->generateGroupBy($options); $statement .= ' '; $statement .= $this->generateOrderBy($options); $statement .= ' '; $statement .= $this->generateLimit($options); $statement .= ' '; return new \Pvik\Database\SQL\Statement\Statement($statement, $this->parameters); }