Пример #1
0
 protected function contextAttached()
 {
     parent::contextAttached();
     $this->context->statements['FROM'] = null;
     $this->context->statements['DELETE FROM'] = $this->context->getFrom();
     $this->context->statements['DELETE'] = $this->context->getFrom();
 }
Пример #2
0
 protected function contextAttached()
 {
     parent::contextAttached();
     $this->context->statements['FROM'] = $this->context->getFrom();
     if (!in_array($this->getTableAlias(), $this->context->joins)) {
         $this->context->joins[] = $this->getTableAlias();
     }
 }