Skip to content

Commit

Permalink
Updated the logic for calculating number of deleted records in Model-…
Browse files Browse the repository at this point in the history
…>deleteMatchingDbTableRows(array $cols_n_vals): int
  • Loading branch information
rotimi committed Jun 7, 2024
1 parent f252d98 commit 6aa59f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LeanOrm/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ public function deleteMatchingDbTableRows(array $cols_n_vals): int {

$matching_rows_before_delete = (int) $this->fetchValue($sel_qry_obj);

$result = $this->db_connector->executeQuery($dlt_qry, $dlt_qry_params, true);
$this->db_connector->executeQuery($dlt_qry, $dlt_qry_params, true);

$matching_rows_after_delete = (int) $this->fetchValue($sel_qry_obj);

Expand Down

0 comments on commit 6aa59f0

Please sign in to comment.