Skip to content

Commit

Permalink
[FIX] ORM Entity : where condition is not working.
Browse files Browse the repository at this point in the history
[FIX] ORM Entity : error executing delete method before apply condition.
  • Loading branch information
bim-g authored Sep 28, 2023
2 parents 5997d80 + 366a768 commit 9d4ac51
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 9d4ac51

Please sign in to comment.