softDelete

Deleting a record but the data is retained.

Usage:

$db->{table}->softDelete($where);
$isDeleted = $db->news->softDelete(1);
// or
$isDeleted = $db->news->softDelete(array('name' => 'Test News'));

Return:

// if successful
true
// else
false

Looking for the other parameters?

Parameters

Last updated