Skip to content

Commit

Permalink
fix pk usage (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmax committed Nov 29, 2023
1 parent bde8bab commit 6df178b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": ["activerecord", "orm"],
"homepage": "http://www.phpactiverecord.org/",
"license": "MIT",
"version": "2.0.1",
"version": "2.0.2",
"require": {
"php": ">=8.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ public function delete()

$options = [
'conditions' => [
new WhereClause([$this->table()->pk[0] => $pk], [])
new WhereClause($pk, [])
]
];

Expand Down

0 comments on commit 6df178b

Please sign in to comment.