Skip to content

Commit

Permalink
Let PHP take care of type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygauthier authored Apr 1, 2019
1 parent 54f961f commit 5d8cff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MySimpleORM/Mapper/ObjectMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function updateObject($obj = null)
*/
public function saveObject()
{
if (($this->Object->get($this->PrimaryKey) !== 0)) {
if (($this->Object->get($this->PrimaryKey) != 0)) {
$this->updateObject($this->Object);
} else {
$this->insertObject($this->Object);
Expand Down

0 comments on commit 5d8cff1

Please sign in to comment.