From 234018f4227291d2da248c3e2e34c95d616361d5 Mon Sep 17 00:00:00 2001 From: motze92 <41009610+motze92@users.noreply.github.com> Date: Thu, 25 Nov 2021 18:22:38 +0100 Subject: [PATCH] Fix: Delete works only for entity since delete only worked on a single entity I added whereKey($id) --- src/Query/Builder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Query/Builder.php b/src/Query/Builder.php index 8022104..bcc842b 100644 --- a/src/Query/Builder.php +++ b/src/Query/Builder.php @@ -892,8 +892,10 @@ public function post($body = [], $properties = [], $options = null) * * @return boolean */ - public function delete($options = null) + public function delete($id, $options = null) { + $this->whereKey($id); + $results = $this->processor->processSelect($this, $this->runDelete()); return true;