We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695859d commit 1f43b01Copy full SHA for 1f43b01
src/Database/Query/FMBaseBuilder.php
@@ -236,6 +236,10 @@ public function delete($recordId = null)
236
{
237
$this->recordId($recordId ?? $this->getRecordId());
238
239
+ // return 0 if there's no record ID, as we can't delete anything
240
+ // deleting nothing is supported normally, but should return a 0
241
+ if ($this->getRecordId() === null) return 0;
242
+
243
return $this->connection->deleteRecord($this);
244
}
245
0 commit comments