当前位置: 首页>>代码示例>>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;未经允许,请勿转载。