SoftDelete\Model\Table\SoftDeleteTrait::restore PHP Метод

restore() публичный Метод

Restore a soft deleted entity into an active state.
public restore ( Cake\Datasource\EntityInterface $entity ) : boolean
$entity Cake\Datasource\EntityInterface Entity to be restored.
Результат boolean true in case of success, false otherwise.
    public function restore(EntityInterface $entity)
    {
        $softDeleteField = $this->getSoftDeleteField();
        $entity->{$softDeleteField} = null;
        return $this->save($entity);
    }