buildQuery() protected method

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