delete() public method

public delete ( $table ) : dibi\Fluent
return dibi\Fluent
示例#1
0
 /**
  * @param $id
  */
 public function delete($id)
 {
     try {
         $this->db->delete($this->tableName)->where($this->primaryKey . ' = %i', $id)->execute();
     } catch (Exception $e) {
         Debugger::log($e->getMessage(), ILogger::ERROR);
     }
 }
示例#2
0
 /**
  * @param int $id
  * @return Dibi\Result|int
  */
 public function delete($id)
 {
     return $this->database->delete($this->table)->where('id = %i', $id)->execute();
 }