Dibi\Connection::delete PHP Method

delete() public method

public delete ( $table ) : dibi\Fluent
return dibi\Fluent
    public function delete($table)
    {
        return $this->command()->delete()->from('%n', $table);
    }

Usage Example

コード例 #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);
     }
 }
All Usage Examples Of Dibi\Connection::delete