delete() 공개 메소드

public delete ( $table ) : dibi\Fluent
리턴 dibi\Fluent
예제 #1
0
파일: BaseMapper.php 프로젝트: svatekr/rsrs
 /**
  * @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();
 }