Skip to content

Commit

Permalink
fix soft delete documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Mar 17, 2017
1 parent 07e5ce5 commit a522bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -770,7 +770,7 @@ The 'before' function allows modification of the request parameters and can (for
'before'=>function(&$cmd, &$db, &$tab, &$id, &$in) {
if ($cmd == 'delete') {
$cmd = 'update'; // change command to update
$in->deleted = date('Y-m-d H:i:s', time());
$in = (object)array('deleted' => date('Y-m-d H:i:s', time()));
}
},
'column_authorizer'=>function($cmd, $db ,$tab, $col) {
Expand Down

0 comments on commit a522bcc

Please sign in to comment.