Esempio n. 1
0
 /**
  * 按条件删除,注意这里不需要where,此处与查询不同。
  *
  * @example $condition = array('expression' => 'id < :id', 'value' => array('id' => 10));
  * @param array $condition
  */
 public function deleteByCondition($condition)
 {
     return $this->table->deleteRows($condition);
 }
Esempio n. 2
0
 /**
  * 按条件删除,此处与查询不同。
  * @param array $where
  * @example $where = array('expression' => 'id < :id', 'value' => array('id' => 10));
  * @return bool
  */
 public function delRow($where)
 {
     return $this->table->deleteRows($where);
 }