當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Builder::delete方法代碼示例

本文整理匯總了PHP中Illuminate\Database\Query\Builder::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP Builder::delete方法的具體用法?PHP Builder::delete怎麽用?PHP Builder::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Database\Query\Builder的用法示例。


在下文中一共展示了Builder::delete方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: delete

 function delete($id)
 {
     $retId = $this->operator->delete($id);
     if ($retId) {
         //todo if here a bug ?
         $obj[$this->pkey] = $retId;
     }
     return $id;
 }
開發者ID:kyleing,項目名稱:gtbool,代碼行數:9,代碼來源:DBOperator.php

示例2: delete

 /**
  * delete data
  *
  * @return int
  */
 public function delete()
 {
     if ($this->dynamic === false) {
         return $this->query->delete();
     }
     $result = $this->query->delete();
     if ($this->proxy === true) {
         $wheres = $this->query->wheres === null ? [] : $this->query->wheres;
         $this->getProxyManager()->delete($wheres);
     }
     return $result;
 }
開發者ID:mint-soft-com,項目名稱:xpressengine,代碼行數:17,代碼來源:DynamicQuery.php

示例3: forceDelete

 /**
  * Force a delete on a set of soft deleted models.
  *
  * @return int
  */
 public function forceDelete()
 {
     return $this->query->delete();
 }
開發者ID:aysenli,項目名稱:laravel-admin-1,代碼行數:9,代碼來源:Builder.php

示例4: delete

 /**
  * Delete a record from the database.
  *
  * @param  null|int $id
  *
  * @return int
  */
 public function delete($id = null)
 {
     $result = parent::delete($id);
     $this->handler->setBuilder($this)->setValues([Reflector::PRIMARY_KEY_COLUMN => $id])->setSqlOperation('delete')->invalidateQuery('delete');
     return $result;
 }
開發者ID:spiritix,項目名稱:lada-cache,代碼行數:13,代碼來源:QueryBuilder.php

示例5: delete

 public function delete($id = null)
 {
     if ($this->needFlushCache()) {
         // 清空表級緩存
         $meta = $this->getMeta();
         $meta->flush($this->db(), $this->model->table());
         $this->flushAffectingRowCache();
     }
     return parent::delete($id);
 }
開發者ID:angejia,項目名稱:pea,代碼行數:10,代碼來源:QueryBuilder.php

示例6: delete

 function delete($id = null)
 {
     return $this->_operator->delete($id);
 }
開發者ID:kyleing,項目名稱:laravel-tool,代碼行數:4,代碼來源:DBOperator.php


注:本文中的Illuminate\Database\Query\Builder::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。