From a522bccb9897aa8f60f7c70769d5eb03420e4866 Mon Sep 17 00:00:00 2001 From: Maurits van der Schee Date: Fri, 17 Mar 2017 03:05:35 +0100 Subject: [PATCH] fix soft delete documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e0e74cb..274958b 100644 --- a/README.md +++ b/README.md @@ -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) {