Exemplo n.º 1
0
 protected function buildQuery()
 {
     $this->init();
     if (empty($this->context->statements['SELECT'])) {
         $this->context->statements['SELECT'][] = $this->getTableAlias() . '.*';
     }
     return parent::buildQuery();
 }
Exemplo n.º 2
0
 /**
  * @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();
 }