Skip to content

Commit

Permalink
[FIX] ORM Entity : error executing delete method before apply condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
bim-g committed Sep 28, 2023
1 parent 493cd93 commit 366a768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Orm/EntityModel/Provider/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ public function delete(): array
try {

$query = $this->db->delete($this->getTableName());
$result = $query->result();
if (isset($this->param['where'])) {
$query->where($this->param['where']);
}
$result = $query->result();
$this->param = [];
if ($this->db->error()) {
throw new \Exception($this->db->error());
Expand Down

0 comments on commit 366a768

Please sign in to comment.