public function remove($id)
    {
        try {
            if ($this->softDelete) {
                $removed = [];
                $removed[$this->primaryKey] = $id;
                $removed[$this->softDeleteName] = date('Y-m-d H:i:s');

                $this->save($removed);
            } else {
                $this->db->delete($this->table, array(
                    $this->primaryKey => $id
                ));
            }

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public function remove($id)
    {
        try {
            if ($this->softDelete) {
                $removed = [];
                $removed[$this->primaryKey] = $id;
                $removed[$this->softDeleteName] = date('Y-m-d H:i:s');

                $this->save($removed);
            } else {
                $this->db->delete($this->table, array(
                    $this->primaryKey => $id
                ));
            }

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public function remove ( $ id ) { try { if ( $ this -> softDelete ) { $ removed = [ ] ; $ removed [ $ this -> primaryKey ] = $ id ; $ removed [ $ this -> softDeleteName ] = date ( 'Y-m-d H:i:s' ) ; $ this -> save ( $ removed ) ; } else { $ this -> db -> delete ( $ this -> table , array ( $ this -> primaryKey => $ id ) ) ; } return true ; } catch ( \ Exception $ e ) { return false ; } }
Exclui um registro da tabela.

@param Integer $id

@return Boolean
Exclui um registro da tabela .