示例#1
0
 /**
  * Build the DELETE query.
  *
  * @param \Titon\Db\Query $query
  * @return string
  */
 public function buildDelete(Query $query)
 {
     return $this->renderStatement(Query::DELETE, ['table' => $this->formatTable($query->getTable(), $query->getAlias()), 'joins' => $this->formatJoins($query->getJoins()), 'where' => $this->formatWhere($query->getWhere()), 'orderBy' => $this->formatOrderBy($query->getOrderBy()), 'limit' => $this->formatLimit($query->getLimit())] + $this->formatAttributes($query->getAttributes()));
 }