src/MVC/Model/ORM_.php
public function restore()
     {
         if ($this->isKept) {
             $key = $this->getPKvalue();
             $sql = 'update '.$this->DBtable.' set deleted_at=null where '.$this->keyName." = '".$key."' ";
             //
             if (Database::exec($sql)) {
                 // Code to execute the init the model
             }
         }
     }
public function restore()
     {
         if ($this->isKept) {
             $key = $this->getPKvalue();
             $sql = 'update '.$this->DBtable.' set deleted_at=null where '.$this->keyName." = '".$key."' ";
             //
             if (Database::exec($sql)) {
                 // Code to execute the init the model
             }
         }
     }
public function restore ( ) { if ( $ this -> isKept ) { $ key = $ this -> getPKvalue ( ) ; $ sql = 'update ' . $ this -> DBtable . ' set deleted_at=null where ' . $ this -> keyName . " = '" . $ key . "' " ; // if ( Database :: exec ( $ sql ) ) { // Code to execute the init the model } } }
restore if kept deleted.
restore if kept deleted .