public function forDelete($deleteOptions = []){
        $table=$model=null;
        if ($this->model) {
            $model = $this->model;
            $table = $model::getTableName();
        }
        $join = $this->getJoin();
        $order = ($order = $this->getOrder()) ? ' ORDER BY ' . $order : '';
        $limit = ($limit = $this->getLimit()) ? ' LIMIT ' . $limit : '';
        $options = implode(" ", $deleteOptions);
        $q = ($this->model ? "DELETE $options FROM `t` USING `$table` as `t` " : "") . $join . " WHERE (" . $this->getCondition() . ")" . $order . $limit;
        return $q;
    }
public function forDelete($deleteOptions = []){
        $table=$model=null;
        if ($this->model) {
            $model = $this->model;
            $table = $model::getTableName();
        }
        $join = $this->getJoin();
        $order = ($order = $this->getOrder()) ? ' ORDER BY ' . $order : '';
        $limit = ($limit = $this->getLimit()) ? ' LIMIT ' . $limit : '';
        $options = implode(" ", $deleteOptions);
        $q = ($this->model ? "DELETE $options FROM `t` USING `$table` as `t` " : "") . $join . " WHERE (" . $this->getCondition() . ")" . $order . $limit;
        return $q;
    }
public function forDelete ( $ deleteOptions = [ ] ) { $ table = $ model = null ; if ( $ this -> model ) { $ model = $ this -> model ; $ table = $ model :: getTableName ( ) ; } $ join = $ this -> getJoin ( ) ; $ order = ( $ order = $ this -> getOrder ( ) ) ? ' ORDER BY ' . $ order : '' ; $ limit = ( $ limit = $ this -> getLimit ( ) ) ? ' LIMIT ' . $ limit : '' ; $ options = implode ( " " , $ deleteOptions ) ; $ q = ( $ this -> model ? "DELETE $options FROM `t` USING `$table` as `t` " : "" ) . $ join . " WHERE (" . $ this -> getCondition ( ) . ")" . $ order . $ limit ; return $ q ; }
Get query For Delete
@param array $deleteOptions Possible Options: LOW_PRIORITY, QUICK or IGNORE
@return string
Get query For Delete