protected function executeDestroy()
    {
        if ($this->reallyDestroy) {
            parent::executeDestroy();
        } else {
            $this->saveData([
                $this->deletedAtColumn => date('Y-m-d H:i:s'),
                $this->deletedByColumn => $this->curUser['id'],
            ]);
        }
    }
protected function executeDestroy()
    {
        if ($this->reallyDestroy) {
            parent::executeDestroy();
        } else {
            $this->saveData([
                $this->deletedAtColumn => date('Y-m-d H:i:s'),
                $this->deletedByColumn => $this->curUser['id'],
            ]);
        }
    }
protected function executeDestroy ( ) { if ( $ this -> reallyDestroy ) { parent :: executeDestroy ( ) ; } else { $ this -> saveData ( [ $ this -> deletedAtColumn => date ( 'Y-m-d H:i:s' ) , $ this -> deletedByColumn => $ this -> curUser [ 'id' ] , ] ) ; } }
Overwrite original destroy logic.
Overwrite original destroy logic .